Remove redundant modifiers

This commit is contained in:
Phillip Webb
2015-09-08 15:06:44 -07:00
parent 460ca75fce
commit e07df7e4c6
210 changed files with 325 additions and 325 deletions

View File

@@ -353,7 +353,7 @@ public class CrshAutoConfiguration {
private final String[] disabledPlugins;
public BeanFactoryFilteringPluginDiscovery(ClassLoader classLoader,
BeanFactoryFilteringPluginDiscovery(ClassLoader classLoader,
ListableBeanFactory beanFactory, String[] disabledPlugins)
throws NullPointerException {
super(classLoader);
@@ -420,7 +420,7 @@ public class CrshAutoConfiguration {
private final ResourceHandle root;
public SimpleFileSystemDriver(ResourceHandle handle) {
SimpleFileSystemDriver(ResourceHandle handle) {
this.root = handle;
}
@@ -474,7 +474,7 @@ public class CrshAutoConfiguration {
private final String name;
public ResourceHandle(String name) {
ResourceHandle(String name) {
this.name = name;
}
@@ -495,7 +495,7 @@ public class CrshAutoConfiguration {
private final AntPathMatcher matcher = new AntPathMatcher();
public DirectoryHandle(String name, ResourcePatternResolver resourceLoader,
DirectoryHandle(String name, ResourcePatternResolver resourceLoader,
String[] filterPatterns) {
super(name);
this.resourceLoader = resourceLoader;
@@ -530,7 +530,7 @@ public class CrshAutoConfiguration {
private final Resource resource;
public FileHandle(String name, Resource resource) {
FileHandle(String name, Resource resource) {
super(name);
this.resource = resource;
}

View File

@@ -230,7 +230,7 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
private ManagementServerProperties properties;
public ApplicationContextHeaderFilter(ApplicationContext applicationContext) {
ApplicationContextHeaderFilter(ApplicationContext applicationContext) {
this.applicationContext = applicationContext;
}
@@ -262,7 +262,7 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
private final ConfigurableApplicationContext childContext;
public CloseEventPropagationListener(ApplicationContext parentContext,
CloseEventPropagationListener(ApplicationContext parentContext,
ConfigurableApplicationContext childContext) {
this.parentContext = parentContext;
this.childContext = childContext;

View File

@@ -309,7 +309,7 @@ public class EndpointWebMvcHypermediaManagementContextConfiguration {
private Map<String, Object> embedded;
@SuppressWarnings("unchecked")
public EndpointResource(Object content, String path) {
EndpointResource(Object content, String path) {
this.content = content instanceof Map ? null : content;
this.embedded = (Map<String, Object>) (this.content == null ? content : null);
add(linkTo(Object.class).slash(path).withSelfRel());

View File

@@ -37,7 +37,7 @@ class LinksEnhancer {
private final MvcEndpoints endpoints;
public LinksEnhancer(String rootPath, MvcEndpoints endpoints) {
LinksEnhancer(String rootPath, MvcEndpoints endpoints) {
this.rootPath = rootPath;
this.endpoints = endpoints;
}

View File

@@ -302,12 +302,12 @@ public class ManagementWebSecurityAutoConfiguration {
private RequestMatcher delegate;
public EndpointPathRequestMatcher(boolean sensitive) {
this.sensitive = sensitive;
EndpointPathRequestMatcher() {
this(true);
}
public EndpointPathRequestMatcher() {
this(true);
EndpointPathRequestMatcher(boolean sensitive) {
this.sensitive = sensitive;
}
@Override

View File

@@ -52,7 +52,7 @@ final class MetricsFilter extends OncePerRequestFilter {
private final GaugeService gaugeService;
public MetricsFilter(CounterService counterService, GaugeService gaugeService) {
MetricsFilter(CounterService counterService, GaugeService gaugeService) {
this.counterService = counterService;
this.gaugeService = gaugeService;
}

View File

@@ -125,7 +125,7 @@ public abstract class AbstractJmxCacheStatisticsProvider<C extends Cache> implem
private final ObjectName objectName;
public ObjectNameWrapper(ObjectName objectName) {
ObjectNameWrapper(ObjectName objectName) {
this.objectName = objectName;
}

View File

@@ -108,7 +108,7 @@ public class CachePublicMetrics implements PublicMetrics {
private final CacheManager cacheManager;
public CacheManagerBean(String beanName, CacheManager cacheManager) {
CacheManagerBean(String beanName, CacheManager cacheManager) {
this.beanName = beanName;
this.cacheManager = cacheManager;
}

View File

@@ -34,7 +34,7 @@ class Sanitizer {
private Pattern[] keysToSanitize;
public Sanitizer() {
Sanitizer() {
setKeysToSanitize("password", "secret", "key", ".*credentials.*", "vcap_services");
}

View File

@@ -68,7 +68,7 @@ public class EnvironmentMvcEndpoint extends EndpointMvcAdapter implements
*/
private class NamePatternEnvironmentFilter extends NamePatternFilter<Environment> {
public NamePatternEnvironmentFilter(Environment source) {
NamePatternEnvironmentFilter(Environment source) {
super(source);
}

View File

@@ -138,7 +138,7 @@ public class JolokiaMvcEndpoint implements MvcEndpoint, InitializingBean,
private final UrlPathHelper urlPathHelper;
public PathStripper(HttpServletRequest request, String path) {
PathStripper(HttpServletRequest request, String path) {
super(request);
this.path = path;
this.urlPathHelper = new UrlPathHelper();

View File

@@ -59,7 +59,7 @@ public class MetricsMvcEndpoint extends EndpointMvcAdapter {
*/
private class NamePatternMapFilter extends NamePatternFilter<Map<String, ?>> {
public NamePatternMapFilter(Map<String, ?> source) {
NamePatternMapFilter(Map<String, ?> source) {
super(source);
}

View File

@@ -37,7 +37,7 @@ abstract class NamePatternFilter<T> {
private final T source;
public NamePatternFilter(T source) {
NamePatternFilter(T source) {
this.source = source;
}
@@ -78,7 +78,7 @@ abstract class NamePatternFilter<T> {
private final Map<String, Object> results = new LinkedHashMap<String, Object>();
public ResultCollectingNameCallback(Pattern pattern) {
ResultCollectingNameCallback(Pattern pattern) {
this.pattern = pattern;
}

View File

@@ -91,7 +91,7 @@ public class OrderedHealthAggregator extends AbstractHealthAggregator {
private final List<String> statusOrder;
public StatusComparator(List<String> statusOrder) {
StatusComparator(List<String> statusOrder) {
this.statusOrder = statusOrder;
}

View File

@@ -27,7 +27,7 @@ abstract class Buffer<T extends Number> {
private volatile long timestamp;
public Buffer(long timestamp) {
Buffer(long timestamp) {
this.timestamp = timestamp;
}

View File

@@ -140,7 +140,7 @@ public class MetricCopyExporter extends AbstractMetricExporter {
private final MetricReader reader;
public PatternMatchingIterable(MetricReader reader) {
PatternMatchingIterable(MetricReader reader) {
this.reader = reader;
}
@@ -157,7 +157,7 @@ public class MetricCopyExporter extends AbstractMetricExporter {
private Iterator<Metric<?>> iterator;
public PatternMatchingIterator(Iterator<Metric<?>> iterator) {
PatternMatchingIterator(Iterator<Metric<?>> iterator) {
this.iterator = iterator;
}

View File

@@ -102,7 +102,7 @@ public class MetricExporters implements SchedulingConfigurer {
private final Exporter exporter;
public ExportRunner(Exporter exporter) {
ExportRunner(Exporter exporter) {
this.exporter = exporter;
}

View File

@@ -33,7 +33,7 @@ class MetricMessage {
private final Message<?> message;
public MetricMessage(Message<?> message) {
MetricMessage(Message<?> message) {
this.message = message;
}

View File

@@ -204,7 +204,7 @@ public class ApplicationPidFileWriter implements
private final String key;
public SpringProperty(String prefix, String key) {
SpringProperty(String prefix, String key) {
this.prefix = prefix;
this.key = key;
}
@@ -239,7 +239,7 @@ public class ApplicationPidFileWriter implements
private final String[] properties;
public SystemProperty(String name) {
SystemProperty(String name) {
this.properties = new String[] { name.toUpperCase(), name.toLowerCase() };
}

View File

@@ -220,7 +220,7 @@ public class EndpointMBeanExportAutoConfigurationTests {
class Nested extends AbstractEndpoint<Boolean> {
public Nested() {
Nested() {
super("managed", true);
}

View File

@@ -589,7 +589,7 @@ public class EndpointWebMvcAutoConfigurationTests {
private EmbeddedServletContainer servletContainer;
public GrabManagementPort(ApplicationContext rootContext) {
GrabManagementPort(ApplicationContext rootContext) {
this.rootContext = rootContext;
}

View File

@@ -79,7 +79,7 @@ public class MetricsEndpointTests extends AbstractEndpointTests<MetricsEndpoint>
private final List<Metric<?>> metrics;
public TestPublicMetrics(int order, Metric<?>... metrics) {
TestPublicMetrics(int order, Metric<?>... metrics) {
this.order = order;
this.metrics = Arrays.asList(metrics);
}

View File

@@ -150,7 +150,7 @@ public class EndpointHandlerMappingTests {
private static class TestEndpoint extends AbstractEndpoint<Object> {
public TestEndpoint(String path) {
TestEndpoint(String path) {
super(path);
}
@@ -163,7 +163,7 @@ public class EndpointHandlerMappingTests {
private static class TestMvcEndpoint extends EndpointMvcAdapter {
public TestMvcEndpoint(TestEndpoint delegate) {
TestMvcEndpoint(TestEndpoint delegate) {
super(delegate);
}
@@ -171,7 +171,7 @@ public class EndpointHandlerMappingTests {
private static class TestActionEndpoint extends EndpointMvcAdapter {
public TestActionEndpoint(TestEndpoint delegate) {
TestActionEndpoint(TestEndpoint delegate) {
super(delegate);
}

View File

@@ -50,7 +50,7 @@ public class NamePatternFilterTests {
private static class MockNamePatternFilter extends NamePatternFilter<Object> {
public MockNamePatternFilter() {
MockNamePatternFilter() {
super(null);
}

View File

@@ -102,7 +102,7 @@ public class StatsdMetricWriterTests {
private final DatagramSocket server;
public DummyStatsDServer(int port) {
DummyStatsDServer(int port) {
try {
this.server = new DatagramSocket(port);
}