Polish
This commit is contained in:
parent
d6e914be87
commit
42e230192f
|
|
@ -42,12 +42,12 @@ public @interface ConditionalOnEnabledEndpoint {
|
|||
* The name of the endpoint.
|
||||
* @return The name of the endpoint
|
||||
*/
|
||||
public String value();
|
||||
String value();
|
||||
|
||||
/**
|
||||
* Returns whether or not the endpoint is enabled by default.
|
||||
* @return {@code true} if the endpoint is enabled by default, otherwise {@code false}
|
||||
*/
|
||||
public boolean enabledByDefault() default true;
|
||||
boolean enabledByDefault() default true;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2013-2015 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -30,7 +30,6 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
import org.springframework.beans.factory.BeanFactoryAware;
|
||||
import org.springframework.beans.factory.ListableBeanFactory;
|
||||
import org.springframework.boot.actuate.endpoint.Endpoint;
|
||||
import org.springframework.boot.actuate.endpoint.ShutdownEndpoint;
|
||||
|
|
@ -60,7 +59,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|||
* @author Andy Wilkinson
|
||||
*/
|
||||
public class EndpointMBeanExporter extends MBeanExporter implements SmartLifecycle,
|
||||
BeanFactoryAware, ApplicationContextAware {
|
||||
ApplicationContextAware {
|
||||
|
||||
public static final String DEFAULT_DOMAIN = "org.springframework.boot";
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ import java.util.Set;
|
|||
|
||||
import org.springframework.boot.actuate.endpoint.Endpoint;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationContextAware;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.web.cors.CorsConfiguration;
|
||||
|
|
@ -49,8 +48,7 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl
|
|||
* @author Christian Dupuis
|
||||
* @author Dave Syer
|
||||
*/
|
||||
public class EndpointHandlerMapping extends RequestMappingHandlerMapping implements
|
||||
ApplicationContextAware {
|
||||
public class EndpointHandlerMapping extends RequestMappingHandlerMapping {
|
||||
|
||||
private final Set<MvcEndpoint> endpoints;
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ abstract class NamePatternFilter<T> {
|
|||
|
||||
protected abstract Object getValue(T source, String name);
|
||||
|
||||
protected static interface NameCallback {
|
||||
protected interface NameCallback {
|
||||
|
||||
void addName(String name);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -23,7 +23,6 @@ import java.util.HashSet;
|
|||
import java.util.concurrent.ConcurrentNavigableMap;
|
||||
|
||||
import org.springframework.boot.actuate.metrics.Metric;
|
||||
import org.springframework.boot.actuate.metrics.reader.PrefixMetricReader;
|
||||
import org.springframework.boot.actuate.metrics.util.SimpleInMemoryRepository;
|
||||
import org.springframework.boot.actuate.metrics.util.SimpleInMemoryRepository.Callback;
|
||||
import org.springframework.boot.actuate.metrics.writer.Delta;
|
||||
|
|
@ -34,8 +33,7 @@ import org.springframework.boot.actuate.metrics.writer.Delta;
|
|||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
public class InMemoryMetricRepository implements MetricRepository, MultiMetricRepository,
|
||||
PrefixMetricReader {
|
||||
public class InMemoryMetricRepository implements MetricRepository, MultiMetricRepository {
|
||||
|
||||
private final SimpleInMemoryRepository<Metric<?>> metrics = new SimpleInMemoryRepository<Metric<?>>();
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public class SimpleInMemoryRepository<T> {
|
|||
|
||||
private final ConcurrentMap<String, Object> locks = new ConcurrentReferenceHashMap<String, Object>();
|
||||
|
||||
public static interface Callback<T> {
|
||||
public interface Callback<T> {
|
||||
T modify(T current);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2010-2015 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -189,7 +189,7 @@ public class ApplicationPidFileWriter implements
|
|||
/**
|
||||
* Provides access to a property value.
|
||||
*/
|
||||
private static interface Property {
|
||||
private interface Property {
|
||||
|
||||
String getValue(SpringApplicationEvent event);
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ public class EndpointMvcIntegrationTests {
|
|||
DispatcherServletAutoConfiguration.class, WebMvcAutoConfiguration.class,
|
||||
JacksonAutoConfiguration.class, ErrorMvcAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -94,9 +94,9 @@ public class ConfigurationPropertiesReportEndpointProxyTests {
|
|||
|
||||
}
|
||||
|
||||
public static interface Executor {
|
||||
public interface Executor {
|
||||
|
||||
public void execute();
|
||||
void execute();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,12 +41,12 @@ public @interface ConditionalOnClass {
|
|||
* classpath.
|
||||
* @return the classes that must be present
|
||||
*/
|
||||
public Class<?>[] value() default {};
|
||||
Class<?>[] value() default {};
|
||||
|
||||
/**
|
||||
* The classes names that must be present.
|
||||
* @return the class names that must be present.
|
||||
*/
|
||||
public String[] name() default {};
|
||||
String[] name() default {};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.autoconfigure.condition;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
|
|
@ -57,7 +58,7 @@ public @interface ConditionalOnJava {
|
|||
/**
|
||||
* Range options.
|
||||
*/
|
||||
public enum Range {
|
||||
enum Range {
|
||||
|
||||
/**
|
||||
* Equal to, or newer than the specified {@link JavaVersion}.
|
||||
|
|
@ -74,7 +75,7 @@ public @interface ConditionalOnJava {
|
|||
/**
|
||||
* Java versions.
|
||||
*/
|
||||
public enum JavaVersion {
|
||||
enum JavaVersion {
|
||||
|
||||
/**
|
||||
* Java 1.6.
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public @interface ConditionalOnMissingClass {
|
|||
* The names of the classes that must not be present.
|
||||
* @return the names of the classes that must not be present
|
||||
*/
|
||||
public String[] value() default {};
|
||||
String[] value() default {};
|
||||
|
||||
/**
|
||||
* An alias for {@link #value} specifying the names of the classes that must not be
|
||||
|
|
@ -48,6 +48,6 @@ public @interface ConditionalOnMissingClass {
|
|||
* @return the class names that must not be present.
|
||||
* @deprecated since 1.3.0 in favor of {@link #value}.
|
||||
*/
|
||||
public String[] name() default {};
|
||||
String[] name() default {};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -40,6 +40,6 @@ public @interface ConditionalOnResource {
|
|||
* The resources that must be present.
|
||||
* @return the resource paths that must be present.
|
||||
*/
|
||||
public String[] resources() default {};
|
||||
String[] resources() default {};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ public class EntityManagerFactoryBuilder {
|
|||
/**
|
||||
* A callback for new entity manager factory beans created by a Builder.
|
||||
*/
|
||||
public static interface EntityManagerFactoryBeanCallback {
|
||||
public interface EntityManagerFactoryBeanCallback {
|
||||
|
||||
void execute(LocalContainerEntityManagerFactoryBean factory);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -38,7 +38,7 @@ public interface ErrorAttributes {
|
|||
* @param includeStackTrace if stack trace elements should be included
|
||||
* @return a map of error attributes
|
||||
*/
|
||||
public Map<String, Object> getErrorAttributes(RequestAttributes requestAttributes,
|
||||
Map<String, Object> getErrorAttributes(RequestAttributes requestAttributes,
|
||||
boolean includeStackTrace);
|
||||
|
||||
/**
|
||||
|
|
@ -47,6 +47,6 @@ public interface ErrorAttributes {
|
|||
* @param requestAttributes the source request attributes
|
||||
* @return the {@link Exception} that caused the error or {@code null}
|
||||
*/
|
||||
public Throwable getError(RequestAttributes requestAttributes);
|
||||
Throwable getError(RequestAttributes requestAttributes);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,6 @@ public interface ErrorController {
|
|||
* Returns the path of the error page.
|
||||
* @return the error path
|
||||
*/
|
||||
public String getErrorPath();
|
||||
String getErrorPath();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -116,7 +116,7 @@ public class AopAutoConfigurationTests {
|
|||
|
||||
public interface TestInterface {
|
||||
|
||||
public abstract void foo();
|
||||
void foo();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ public class DataSourceJsonSerializationTests {
|
|||
}
|
||||
|
||||
@JsonSerialize(using = TomcatDataSourceSerializer.class)
|
||||
protected static interface DataSourceJson {
|
||||
protected interface DataSourceJson {
|
||||
}
|
||||
|
||||
protected static class TomcatDataSourceSerializer extends JsonSerializer<DataSource> {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -100,7 +100,7 @@ public class JerseyAutoConfigurationCustomFilterContextPathTests {
|
|||
@Import({ EmbeddedServletContainerAutoConfiguration.class,
|
||||
ServerPropertiesAutoConfiguration.class, JerseyAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -99,7 +99,7 @@ public class JerseyAutoConfigurationCustomFilterPathTests {
|
|||
@Import({ EmbeddedServletContainerAutoConfiguration.class,
|
||||
ServerPropertiesAutoConfiguration.class, JerseyAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -99,7 +99,7 @@ public class JerseyAutoConfigurationCustomServletContextPathTests {
|
|||
@Import({ EmbeddedServletContainerAutoConfiguration.class,
|
||||
ServerPropertiesAutoConfiguration.class, JerseyAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -99,7 +99,7 @@ public class JerseyAutoConfigurationCustomServletPathTests {
|
|||
@Import({ EmbeddedServletContainerAutoConfiguration.class,
|
||||
ServerPropertiesAutoConfiguration.class, JerseyAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -97,7 +97,7 @@ public class JerseyAutoConfigurationDefaultFilterPathTests {
|
|||
@Import({ EmbeddedServletContainerAutoConfiguration.class,
|
||||
ServerPropertiesAutoConfiguration.class, JerseyAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -97,7 +97,7 @@ public class JerseyAutoConfigurationDefaultServletPathTests {
|
|||
@Import({ EmbeddedServletContainerAutoConfiguration.class,
|
||||
ServerPropertiesAutoConfiguration.class, JerseyAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public class MustacheAutoConfigurationIntegrationTests {
|
|||
ServerPropertiesAutoConfiguration.class,
|
||||
DispatcherServletAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ public class MustacheWebIntegrationTests {
|
|||
ServerPropertiesAutoConfiguration.class,
|
||||
DispatcherServletAutoConfiguration.class,
|
||||
PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ public class SpringBootWebSecurityConfigurationTests {
|
|||
DispatcherServletAutoConfiguration.class, WebMvcAutoConfiguration.class,
|
||||
HttpMessageConvertersAutoConfiguration.class,
|
||||
ErrorMvcAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -20,6 +20,6 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
|||
|
||||
public interface UserRepository extends JpaRepository<User, Integer> {
|
||||
|
||||
public User findByEmail(String email);
|
||||
User findByEmail(String email);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -113,7 +113,7 @@ public class BasicErrorControllerDirectMockMvcTests {
|
|||
DispatcherServletAutoConfiguration.class, WebMvcAutoConfiguration.class,
|
||||
HttpMessageConvertersAutoConfiguration.class,
|
||||
ErrorMvcAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -134,7 +134,7 @@ public class BasicErrorControllerMockMvcTests {
|
|||
DispatcherServletAutoConfiguration.class, WebMvcAutoConfiguration.class,
|
||||
HttpMessageConvertersAutoConfiguration.class,
|
||||
ErrorMvcAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -98,7 +98,7 @@ public class DefaultErrorViewIntegrationTests {
|
|||
DispatcherServletAutoConfiguration.class, WebMvcAutoConfiguration.class,
|
||||
HttpMessageConvertersAutoConfiguration.class,
|
||||
ErrorMvcAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public class WelcomePageMockMvcTests {
|
|||
DispatcherServletAutoConfiguration.class, WebMvcAutoConfiguration.class,
|
||||
HttpMessageConvertersAutoConfiguration.class,
|
||||
ErrorMvcAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class })
|
||||
protected static @interface MinimalWebConfiguration {
|
||||
protected @interface MinimalWebConfiguration {
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public interface GroovyCompilerConfiguration {
|
|||
/**
|
||||
* Constant to be used when there is no {@link #getClasspath() classpath}.
|
||||
*/
|
||||
public static final String[] DEFAULT_CLASSPATH = { "." };
|
||||
String[] DEFAULT_CLASSPATH = { "." };
|
||||
|
||||
/**
|
||||
* Returns the scope in which the compiler operates.
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public interface AccessManager {
|
|||
/**
|
||||
* {@link AccessManager} that permits all requests.
|
||||
*/
|
||||
public static final AccessManager PERMIT_ALL = new AccessManager() {
|
||||
AccessManager PERMIT_ALL = new AccessManager() {
|
||||
|
||||
@Override
|
||||
public boolean isAllowed(ServerHttpRequest request) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public interface FailureHandler {
|
|||
/**
|
||||
* {@link FailureHandler} that always aborts.
|
||||
*/
|
||||
public static final FailureHandler NONE = new FailureHandler() {
|
||||
FailureHandler NONE = new FailureHandler() {
|
||||
|
||||
@Override
|
||||
public Outcome handle(Throwable failure) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public interface RestartInitializer {
|
|||
/**
|
||||
* {@link RestartInitializer} that doesn't return any URLs.
|
||||
*/
|
||||
public static final RestartInitializer NONE = new RestartInitializer() {
|
||||
RestartInitializer NONE = new RestartInitializer() {
|
||||
|
||||
@Override
|
||||
public URL[] getInitialUrls(Thread thread) {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public interface ClassLoaderFileRepository {
|
|||
/**
|
||||
* Empty {@link ClassLoaderFileRepository} implementation.
|
||||
*/
|
||||
public static final ClassLoaderFileRepository NONE = new ClassLoaderFileRepository() {
|
||||
ClassLoaderFileRepository NONE = new ClassLoaderFileRepository() {
|
||||
|
||||
@Override
|
||||
public ClassLoaderFile getFile(String name) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -36,7 +36,7 @@ public interface FieldValuesParser {
|
|||
* Implementation of {@link FieldValuesParser} that always returns an empty
|
||||
* result.
|
||||
*/
|
||||
public static final FieldValuesParser NONE = new FieldValuesParser() {
|
||||
FieldValuesParser NONE = new FieldValuesParser() {
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getFieldValues(TypeElement element) {
|
||||
|
|
|
|||
|
|
@ -30,6 +30,6 @@ public interface PluginFeatures {
|
|||
* Apply the features to the specified project.
|
||||
* @param project the project to apply features to
|
||||
*/
|
||||
public void apply(Project project);
|
||||
void apply(Project project);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ public class JarWriter {
|
|||
/**
|
||||
* Interface used to write jar entry date.
|
||||
*/
|
||||
private static interface EntryWriter {
|
||||
private interface EntryWriter {
|
||||
|
||||
/**
|
||||
* Write entry data to the specified output stream
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public interface Libraries {
|
|||
/**
|
||||
* Represents no libraries.
|
||||
*/
|
||||
public static Libraries NONE = new Libraries() {
|
||||
Libraries NONE = new Libraries() {
|
||||
@Override
|
||||
public void doWithLibraries(LibraryCallback callback) throws IOException {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -28,7 +28,7 @@ public interface LibraryScope {
|
|||
/**
|
||||
* The library is used at compile time and runtime.
|
||||
*/
|
||||
public static final LibraryScope COMPILE = new LibraryScope() {
|
||||
LibraryScope COMPILE = new LibraryScope() {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
|
@ -40,7 +40,7 @@ public interface LibraryScope {
|
|||
/**
|
||||
* The library is used at runtime but not needed for compile.
|
||||
*/
|
||||
public static final LibraryScope RUNTIME = new LibraryScope() {
|
||||
LibraryScope RUNTIME = new LibraryScope() {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
|
@ -52,7 +52,7 @@ public interface LibraryScope {
|
|||
/**
|
||||
* The library is needed for compile but is usually provided when running.
|
||||
*/
|
||||
public static final LibraryScope PROVIDED = new LibraryScope() {
|
||||
LibraryScope PROVIDED = new LibraryScope() {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
|
@ -64,7 +64,7 @@ public interface LibraryScope {
|
|||
/**
|
||||
* Marker for custom scope when custom configuration is used.
|
||||
*/
|
||||
public static final LibraryScope CUSTOM = new LibraryScope() {
|
||||
LibraryScope CUSTOM = new LibraryScope() {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
|
|
|||
|
|
@ -313,7 +313,7 @@ public abstract class MainClassFinder {
|
|||
* Callback interface used to receive class names.
|
||||
* @param <T> the result type
|
||||
*/
|
||||
public static interface ClassNameCallback<T> {
|
||||
public interface ClassNameCallback<T> {
|
||||
|
||||
/**
|
||||
* Handle the specified class name
|
||||
|
|
|
|||
|
|
@ -32,6 +32,6 @@ public interface JavaAgentDetector {
|
|||
* @param url The url to examine
|
||||
* @return if the URL points to a Java agent
|
||||
*/
|
||||
public boolean isJavaAgentJar(URL url);
|
||||
boolean isJavaAgentJar(URL url);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ public abstract class Archive {
|
|||
/**
|
||||
* Represents a single entry in the archive.
|
||||
*/
|
||||
public static interface Entry {
|
||||
public interface Entry {
|
||||
|
||||
/**
|
||||
* Returns {@code true} if the entry represents a directory.
|
||||
|
|
@ -123,7 +123,7 @@ public abstract class Archive {
|
|||
/**
|
||||
* Strategy interface to filter {@link Entry Entries}.
|
||||
*/
|
||||
public static interface EntryFilter {
|
||||
public interface EntryFilter {
|
||||
|
||||
/**
|
||||
* Apply the jar entry filter.
|
||||
|
|
@ -137,7 +137,7 @@ public abstract class Archive {
|
|||
/**
|
||||
* Strategy interface to filter or rename {@link Entry Entries}.
|
||||
*/
|
||||
public static interface EntryRenameFilter {
|
||||
public interface EntryRenameFilter {
|
||||
|
||||
/**
|
||||
* Apply the jar entry filter.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -27,96 +27,96 @@ public interface AnsiElement {
|
|||
* @deprecated in 1.3.0 in favor of {@link AnsiStyle#NORMAL}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement NORMAL = new DefaultAnsiElement("0");
|
||||
AnsiElement NORMAL = new DefaultAnsiElement("0");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiStyle#BOLD}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement BOLD = new DefaultAnsiElement("1");
|
||||
AnsiElement BOLD = new DefaultAnsiElement("1");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiStyle#FAINT}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement FAINT = new DefaultAnsiElement("2");
|
||||
AnsiElement FAINT = new DefaultAnsiElement("2");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiStyle#ITALIC}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement ITALIC = new DefaultAnsiElement("3");
|
||||
AnsiElement ITALIC = new DefaultAnsiElement("3");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiStyle#UNDERLINE}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement UNDERLINE = new DefaultAnsiElement("4");
|
||||
AnsiElement UNDERLINE = new DefaultAnsiElement("4");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiColor#BLACK}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement BLACK = new DefaultAnsiElement("30");
|
||||
AnsiElement BLACK = new DefaultAnsiElement("30");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiColor#RED}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement RED = new DefaultAnsiElement("31");
|
||||
AnsiElement RED = new DefaultAnsiElement("31");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiColor#GREEN}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement GREEN = new DefaultAnsiElement("32");
|
||||
AnsiElement GREEN = new DefaultAnsiElement("32");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiColor#YELLOW}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement YELLOW = new DefaultAnsiElement("33");
|
||||
AnsiElement YELLOW = new DefaultAnsiElement("33");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiColor#BLUE}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement BLUE = new DefaultAnsiElement("34");
|
||||
AnsiElement BLUE = new DefaultAnsiElement("34");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiColor#MAGENTA}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement MAGENTA = new DefaultAnsiElement("35");
|
||||
AnsiElement MAGENTA = new DefaultAnsiElement("35");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiColor#CYAN}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement CYAN = new DefaultAnsiElement("36");
|
||||
AnsiElement CYAN = new DefaultAnsiElement("36");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiColor#WHITE}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement WHITE = new DefaultAnsiElement("37");
|
||||
AnsiElement WHITE = new DefaultAnsiElement("37");
|
||||
|
||||
/**
|
||||
* @deprecated in 1.3.0 in favor of {@link AnsiColor#DEFAULT}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final AnsiElement DEFAULT = new DefaultAnsiElement("39");
|
||||
AnsiElement DEFAULT = new DefaultAnsiElement("39");
|
||||
|
||||
/**
|
||||
* @return the ANSI escape code
|
||||
*/
|
||||
@Override
|
||||
public String toString();
|
||||
String toString();
|
||||
|
||||
/**
|
||||
* Internal default {@link AnsiElement} implementation.
|
||||
*/
|
||||
static class DefaultAnsiElement implements AnsiElement {
|
||||
class DefaultAnsiElement implements AnsiElement {
|
||||
|
||||
private final String code;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2013 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -26,7 +26,7 @@ import java.net.UnknownHostException;
|
|||
*
|
||||
* @author Dave Syer
|
||||
*/
|
||||
public class InetAddressEditor extends PropertyEditorSupport implements PropertyEditor {
|
||||
public class InetAddressEditor extends PropertyEditorSupport {
|
||||
|
||||
@Override
|
||||
public String getAsText() {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -107,7 +107,7 @@ public class ConfigurationWarningsApplicationContextInitializer implements
|
|||
/**
|
||||
* A single check that can be applied.
|
||||
*/
|
||||
protected static interface Check {
|
||||
protected interface Check {
|
||||
|
||||
/**
|
||||
* Returns a warning if the check fails or {@code null} if there are no problems.
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ class ServletContextInitializerBeans extends
|
|||
* Adapter to convert a given Bean type into a {@link RegistrationBean} (and hence a
|
||||
* {@link ServletContextInitializer}.
|
||||
*/
|
||||
private static interface RegistrationBeanAdapter<T> {
|
||||
private interface RegistrationBeanAdapter<T> {
|
||||
|
||||
RegistrationBean createRegistrationBean(String name, T source,
|
||||
int totalNumberOfSourceBeans);
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
|
@ -535,7 +535,7 @@ public class JettyEmbeddedServletContainerFactory extends
|
|||
/**
|
||||
* Factory to create the SSL {@link ServerConnector}.
|
||||
*/
|
||||
private static interface SslServerConnectorFactory {
|
||||
private interface SslServerConnectorFactory {
|
||||
|
||||
AbstractConnector getConnector(Server server,
|
||||
SslContextFactory sslContextFactory, int port);
|
||||
|
|
|
|||
Loading…
Reference in New Issue