Skip to content

Commit

Permalink
Remove redundant modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
philwebb committed Sep 9, 2015
1 parent 460ca75 commit e07df7e
Show file tree
Hide file tree
Showing 210 changed files with 325 additions and 325 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ private static class BeanFactoryFilteringPluginDiscovery extends

private final String[] disabledPlugins;

public BeanFactoryFilteringPluginDiscovery(ClassLoader classLoader,
BeanFactoryFilteringPluginDiscovery(ClassLoader classLoader,
ListableBeanFactory beanFactory, String[] disabledPlugins)
throws NullPointerException {
super(classLoader);
Expand Down Expand Up @@ -420,7 +420,7 @@ private static class SimpleFileSystemDriver extends AbstractFSDriver<ResourceHan

private final ResourceHandle root;

public SimpleFileSystemDriver(ResourceHandle handle) {
SimpleFileSystemDriver(ResourceHandle handle) {
this.root = handle;
}

Expand Down Expand Up @@ -474,7 +474,7 @@ private abstract static class ResourceHandle {

private final String name;

public ResourceHandle(String name) {
ResourceHandle(String name) {
this.name = name;
}

Expand All @@ -495,7 +495,7 @@ private static class DirectoryHandle extends ResourceHandle {

private final AntPathMatcher matcher = new AntPathMatcher();

public DirectoryHandle(String name, ResourcePatternResolver resourceLoader,
DirectoryHandle(String name, ResourcePatternResolver resourceLoader,
String[] filterPatterns) {
super(name);
this.resourceLoader = resourceLoader;
Expand Down Expand Up @@ -530,7 +530,7 @@ private static class FileHandle extends ResourceHandle {

private final Resource resource;

public FileHandle(String name, Resource resource) {
FileHandle(String name, Resource resource) {
super(name);
this.resource = resource;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private static class ApplicationContextHeaderFilter extends OncePerRequestFilter

private ManagementServerProperties properties;

public ApplicationContextHeaderFilter(ApplicationContext applicationContext) {
ApplicationContextHeaderFilter(ApplicationContext applicationContext) {
this.applicationContext = applicationContext;
}

Expand Down Expand Up @@ -262,7 +262,7 @@ private static class CloseEventPropagationListener implements

private final ConfigurableApplicationContext childContext;

public CloseEventPropagationListener(ApplicationContext parentContext,
CloseEventPropagationListener(ApplicationContext parentContext,
ConfigurableApplicationContext childContext) {
this.parentContext = parentContext;
this.childContext = childContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ private static class EndpointResource extends ResourceSupport {
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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,12 @@ private final class EndpointPathRequestMatcher implements RequestMatcher {

private RequestMatcher delegate;

public EndpointPathRequestMatcher(boolean sensitive) {
this.sensitive = sensitive;
EndpointPathRequestMatcher() {
this(true);
}

public EndpointPathRequestMatcher() {
this(true);
EndpointPathRequestMatcher(boolean sensitive) {
this.sensitive = sensitive;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private static class ObjectNameWrapper {

private final ObjectName objectName;

public ObjectNameWrapper(ObjectName objectName) {
ObjectNameWrapper(ObjectName objectName) {
this.objectName = objectName;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private static class CacheManagerBean {

private final CacheManager cacheManager;

public CacheManagerBean(String beanName, CacheManager cacheManager) {
CacheManagerBean(String beanName, CacheManager cacheManager) {
this.beanName = beanName;
this.cacheManager = cacheManager;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Sanitizer {

private Pattern[] keysToSanitize;

public Sanitizer() {
Sanitizer() {
setKeysToSanitize("password", "secret", "key", ".*credentials.*", "vcap_services");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void setEnvironment(Environment environment) {
*/
private class NamePatternEnvironmentFilter extends NamePatternFilter<Environment> {

public NamePatternEnvironmentFilter(Environment source) {
NamePatternEnvironmentFilter(Environment source) {
super(source);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private static class PathStripper extends HttpServletRequestWrapper {

private final UrlPathHelper urlPathHelper;

public PathStripper(HttpServletRequest request, String path) {
PathStripper(HttpServletRequest request, String path) {
super(request);
this.path = path;
this.urlPathHelper = new UrlPathHelper();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public Object value(@PathVariable String name) {
*/
private class NamePatternMapFilter extends NamePatternFilter<Map<String, ?>> {

public NamePatternMapFilter(Map<String, ?> source) {
NamePatternMapFilter(Map<String, ?> source) {
super(source);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract class NamePatternFilter<T> {

private final T source;

public NamePatternFilter(T source) {
NamePatternFilter(T source) {
this.source = source;
}

Expand Down Expand Up @@ -78,7 +78,7 @@ private class ResultCollectingNameCallback implements NameCallback {

private final Map<String, Object> results = new LinkedHashMap<String, Object>();

public ResultCollectingNameCallback(Pattern pattern) {
ResultCollectingNameCallback(Pattern pattern) {
this.pattern = pattern;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private class StatusComparator implements Comparator<Status> {

private final List<String> statusOrder;

public StatusComparator(List<String> statusOrder) {
StatusComparator(List<String> statusOrder) {
this.statusOrder = statusOrder;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ abstract class Buffer<T extends Number> {

private volatile long timestamp;

public Buffer(long timestamp) {
Buffer(long timestamp) {
this.timestamp = timestamp;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private class PatternMatchingIterable implements Iterable<Metric<?>> {

private final MetricReader reader;

public PatternMatchingIterable(MetricReader reader) {
PatternMatchingIterable(MetricReader reader) {
this.reader = reader;
}

Expand All @@ -157,7 +157,7 @@ private class PatternMatchingIterator implements Iterator<Metric<?>> {

private Iterator<Metric<?>> iterator;

public PatternMatchingIterator(Iterator<Metric<?>> iterator) {
PatternMatchingIterator(Iterator<Metric<?>> iterator) {
this.iterator = iterator;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private static class ExportRunner implements Runnable {

private final Exporter exporter;

public ExportRunner(Exporter exporter) {
ExportRunner(Exporter exporter) {
this.exporter = exporter;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MetricMessage {

private final Message<?> message;

public MetricMessage(Message<?> message) {
MetricMessage(Message<?> message) {
this.message = message;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private static class SpringProperty implements Property {

private final String key;

public SpringProperty(String prefix, String key) {
SpringProperty(String prefix, String key) {
this.prefix = prefix;
this.key = key;
}
Expand Down Expand Up @@ -239,7 +239,7 @@ private static class SystemProperty implements Property {

private final String[] properties;

public SystemProperty(String name) {
SystemProperty(String name) {
this.properties = new String[] { name.toUpperCase(), name.toLowerCase() };
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public Endpoint<Boolean> nested() {

class Nested extends AbstractEndpoint<Boolean> {

public Nested() {
Nested() {
super("managed", true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ private static class GrabManagementPort implements

private EmbeddedServletContainer servletContainer;

public GrabManagementPort(ApplicationContext rootContext) {
GrabManagementPort(ApplicationContext rootContext) {
this.rootContext = rootContext;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private static class TestPublicMetrics implements PublicMetrics, Ordered {

private final List<Metric<?>> metrics;

public TestPublicMetrics(int order, Metric<?>... metrics) {
TestPublicMetrics(int order, Metric<?>... metrics) {
this.order = order;
this.metrics = Arrays.asList(metrics);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void duplicatePath() throws Exception {

private static class TestEndpoint extends AbstractEndpoint<Object> {

public TestEndpoint(String path) {
TestEndpoint(String path) {
super(path);
}

Expand All @@ -163,15 +163,15 @@ public Object invoke() {

private static class TestMvcEndpoint extends EndpointMvcAdapter {

public TestMvcEndpoint(TestEndpoint delegate) {
TestMvcEndpoint(TestEndpoint delegate) {
super(delegate);
}

}

private static class TestActionEndpoint extends EndpointMvcAdapter {

public TestActionEndpoint(TestEndpoint delegate) {
TestActionEndpoint(TestEndpoint delegate) {
super(delegate);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void regex() throws Exception {

private static class MockNamePatternFilter extends NamePatternFilter<Object> {

public MockNamePatternFilter() {
MockNamePatternFilter() {
super(null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private static final class DummyStatsDServer {

private final DatagramSocket server;

public DummyStatsDServer(int port) {
DummyStatsDServer(int port) {
try {
this.server = new DatagramSocket(port);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static final class BasePackages {

private boolean loggedBasePackageInfo;

public BasePackages(String... names) {
BasePackages(String... names) {
List<String> packages = new ArrayList<String>();
for (String name : names) {
if (StringUtils.hasText(name)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AutoConfigurationSorter {

private final CachingMetadataReaderFactory metadataReaderFactory;

public AutoConfigurationSorter(ResourceLoader resourceLoader) {
AutoConfigurationSorter(ResourceLoader resourceLoader) {
Assert.notNull(resourceLoader, "ResourceLoader must not be null");
this.metadataReaderFactory = new CachingMetadataReaderFactory(resourceLoader);
}
Expand Down Expand Up @@ -105,7 +105,7 @@ private static class AutoConfigurationClasses {

private final Map<String, AutoConfigurationClass> classes = new HashMap<String, AutoConfigurationClass>();

public AutoConfigurationClasses(MetadataReaderFactory metadataReaderFactory,
AutoConfigurationClasses(MetadataReaderFactory metadataReaderFactory,
Collection<String> classNames) throws IOException {
for (String className : classNames) {
MetadataReader metadataReader = metadataReaderFactory
Expand Down Expand Up @@ -135,7 +135,7 @@ private static class AutoConfigurationClass {

private final AnnotationMetadata metadata;

public AutoConfigurationClass(MetadataReader metadataReader) {
AutoConfigurationClass(MetadataReader metadataReader) {
this.metadata = metadataReader.getAnnotationMetadata();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private static class SkipPatternPathMatchingResourcePatternResolver extends
"hibernate-entitymanager-", "hibernate-validator-", "logback-classic-",
"logback-core-", "thymeleaf-" };

public SkipPatternPathMatchingResourcePatternResolver(ClassLoader classLoader) {
SkipPatternPathMatchingResourcePatternResolver(ClassLoader classLoader) {
super(classLoader);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class BasicBatchConfigurer implements BatchConfigurer {
* @param properties the batch properties
* @param dataSource the underlying data source
*/
public BasicBatchConfigurer(BatchProperties properties, DataSource dataSource) {
BasicBatchConfigurer(BatchProperties properties, DataSource dataSource) {
this(properties, dataSource, null);
}

Expand All @@ -75,7 +75,7 @@ public BasicBatchConfigurer(BatchProperties properties, DataSource dataSource) {
* @param dataSource the underlying data source
* @param entityManagerFactory the entity manager factory (or {@code null})
*/
public BasicBatchConfigurer(BatchProperties properties, DataSource dataSource,
BasicBatchConfigurer(BatchProperties properties, DataSource dataSource,
EntityManagerFactory entityManagerFactory) {
this.properties = properties;
this.entityManagerFactory = entityManagerFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public CacheManager ehCacheCacheManager() {
*/
static class ConfigAvailableCondition extends ResourceCondition {

public ConfigAvailableCondition() {
ConfigAvailableCondition() {
super("EhCache", "spring.cache.ehcache", "config", "classpath:/ehcache.xml");
}

Expand Down
Loading

0 comments on commit e07df7e

Please sign in to comment.