Skip to content

Commit d8f827d

Browse files
committed
Cleanup and format code
1 parent c7b46e4 commit d8f827d

File tree

649 files changed

+1922
-2003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

649 files changed

+1922
-2003
lines changed

spring-boot-actuator-docs/src/restdoc/java/org/springframework/boot/actuate/hypermedia/EndpointDocumentation.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class EndpointDocumentation {
7878
static final File LOG_FILE = new File("target/logs/spring.log");
7979

8080
private static final Set<String> SKIPPED = Collections
81-
.<String>unmodifiableSet(new HashSet<String>(
81+
.<String>unmodifiableSet(new HashSet<>(
8282
Arrays.asList("/docs", "/logfile", "/heapdump", "/auditevents")));
8383

8484
@Autowired
@@ -161,8 +161,8 @@ public void auditEventsByPrincipalAndType() throws Exception {
161161
@Test
162162
public void endpoints() throws Exception {
163163
final File docs = new File("src/main/asciidoc");
164-
final Map<String, Object> model = new LinkedHashMap<String, Object>();
165-
final List<EndpointDoc> endpoints = new ArrayList<EndpointDoc>();
164+
final Map<String, Object> model = new LinkedHashMap<>();
165+
final List<EndpointDoc> endpoints = new ArrayList<>();
166166
model.put("endpoints", endpoints);
167167
for (MvcEndpoint endpoint : getEndpoints()) {
168168
final String endpointPath = (StringUtils.hasText(endpoint.getPath())
@@ -200,7 +200,7 @@ public void handle(MvcResult mvcResult) throws Exception {
200200
}
201201

202202
private Collection<? extends MvcEndpoint> getEndpoints() {
203-
List<? extends MvcEndpoint> endpoints = new ArrayList<MvcEndpoint>(
203+
List<? extends MvcEndpoint> endpoints = new ArrayList<>(
204204
this.mvcEndpoints.getEndpoints());
205205
Collections.sort(endpoints, new Comparator<MvcEndpoint>() {
206206
@Override

spring-boot-actuator-docs/src/restdoc/java/org/springframework/boot/actuate/hypermedia/LimitedEnvironmentEndpoint.java

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,8 +39,8 @@ public class LimitedEnvironmentEndpoint extends EnvironmentEndpoint {
3939
private static final MultiValueMap<String, String> INCLUDES;
4040

4141
static {
42-
Map<String, List<String>> includes = new LinkedHashMap<String, List<String>>();
43-
List<String> systemProperties = new ArrayList<String>();
42+
Map<String, List<String>> includes = new LinkedHashMap<>();
43+
List<String> systemProperties = new ArrayList<>();
4444
systemProperties.add("java.runtime.name");
4545
systemProperties.add("sun.boot.library.path");
4646
systemProperties.add("java.vendor.url");
@@ -61,14 +61,13 @@ public class LimitedEnvironmentEndpoint extends EnvironmentEndpoint {
6161
systemProperties.add("java.vendor");
6262
systemProperties.add("file.separator");
6363
includes.put("systemProperties", systemProperties);
64-
List<String> systemEnvironment = new ArrayList<String>();
64+
List<String> systemEnvironment = new ArrayList<>();
6565
systemEnvironment.add("SHELL");
6666
systemEnvironment.add("TMPDIR");
6767
systemEnvironment.add("DISPLAY");
6868
systemEnvironment.add("LOGNAME");
6969
includes.put("systemEnvironment", systemEnvironment);
70-
INCLUDES = new LinkedMultiValueMap<String, String>(
71-
Collections.unmodifiableMap(includes));
70+
INCLUDES = new LinkedMultiValueMap<>(Collections.unmodifiableMap(includes));
7271
}
7372

7473
@Override

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/AuditEvent.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public AuditEvent(Date timestamp, String principal, String type,
9494
}
9595

9696
private static Map<String, Object> convert(String[] data) {
97-
Map<String, Object> result = new HashMap<String, Object>();
97+
Map<String, Object> result = new HashMap<>();
9898
for (String entry : data) {
9999
if (entry.contains("=")) {
100100
int index = entry.indexOf("=");

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/InMemoryAuditEventRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public List<AuditEvent> find(String principal, Date after) {
8181

8282
@Override
8383
public List<AuditEvent> find(String principal, Date after, String type) {
84-
LinkedList<AuditEvent> events = new LinkedList<AuditEvent>();
84+
LinkedList<AuditEvent> events = new LinkedList<>();
8585
synchronized (this.monitor) {
8686
for (int i = 0; i < this.events.length; i++) {
8787
AuditEvent event = resolveTailEvent(i);

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointAutoConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -145,7 +145,7 @@ public LoggersEndpoint loggersEndpoint(LoggingSystem loggingSystem) {
145145
@Bean
146146
@ConditionalOnMissingBean
147147
public MetricsEndpoint metricsEndpoint() {
148-
List<PublicMetrics> publicMetrics = new ArrayList<PublicMetrics>();
148+
List<PublicMetrics> publicMetrics = new ArrayList<>();
149149
if (this.publicMetrics != null) {
150150
publicMetrics.addAll(this.publicMetrics);
151151
}

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointCorsProperties.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2015 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,23 +34,23 @@ public class EndpointCorsProperties {
3434
* Comma-separated list of origins to allow. '*' allows all origins. When not set,
3535
* CORS support is disabled.
3636
*/
37-
private List<String> allowedOrigins = new ArrayList<String>();
37+
private List<String> allowedOrigins = new ArrayList<>();
3838

3939
/**
4040
* Comma-separated list of methods to allow. '*' allows all methods. When not set,
4141
* defaults to GET.
4242
*/
43-
private List<String> allowedMethods = new ArrayList<String>();
43+
private List<String> allowedMethods = new ArrayList<>();
4444

4545
/**
4646
* Comma-separated list of headers to allow in a request. '*' allows all headers.
4747
*/
48-
private List<String> allowedHeaders = new ArrayList<String>();
48+
private List<String> allowedHeaders = new ArrayList<>();
4949

5050
/**
5151
* Comma-separated list of headers to include in a response.
5252
*/
53-
private List<String> exposedHeaders = new ArrayList<String>();
53+
private List<String> exposedHeaders = new ArrayList<>();
5454

5555
/**
5656
* Set whether credentials are supported. When not set, credentials are not supported.

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcChildContextConfiguration.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public HandlerExecutionChain getHandler(HttpServletRequest request)
243243
}
244244

245245
private List<HandlerMapping> extractMappings() {
246-
List<HandlerMapping> list = new ArrayList<HandlerMapping>();
246+
List<HandlerMapping> list = new ArrayList<>();
247247
list.addAll(this.beanFactory.getBeansOfType(HandlerMapping.class).values());
248248
list.remove(this);
249249
AnnotationAwareOrderComparator.sort(list);
@@ -260,7 +260,7 @@ static class CompositeHandlerAdapter implements HandlerAdapter {
260260
private List<HandlerAdapter> adapters;
261261

262262
private List<HandlerAdapter> extractAdapters() {
263-
List<HandlerAdapter> list = new ArrayList<HandlerAdapter>();
263+
List<HandlerAdapter> list = new ArrayList<>();
264264
list.addAll(this.beanFactory.getBeansOfType(HandlerAdapter.class).values());
265265
list.remove(this);
266266
AnnotationAwareOrderComparator.sort(list);
@@ -317,7 +317,7 @@ static class CompositeHandlerExceptionResolver implements HandlerExceptionResolv
317317
private List<HandlerExceptionResolver> resolvers;
318318

319319
private List<HandlerExceptionResolver> extractResolvers() {
320-
List<HandlerExceptionResolver> list = new ArrayList<HandlerExceptionResolver>();
320+
List<HandlerExceptionResolver> list = new ArrayList<>();
321321
list.addAll(this.beanFactory.getBeansOfType(HandlerExceptionResolver.class)
322322
.values());
323323
list.remove(this);

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcHypermediaManagementContextConfiguration.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ public HalJsonMvcEndpoint halJsonMvcEndpoint(
126126
@ConditionalOnBean(DocsMvcEndpoint.class)
127127
@ConditionalOnMissingBean(CurieProvider.class)
128128
@ConditionalOnProperty(prefix = "endpoints.docs.curies", name = "enabled", matchIfMissing = false)
129-
public DefaultCurieProvider curieProvider(
130-
ManagementServerProperties management, DocsMvcEndpoint endpoint) {
129+
public DefaultCurieProvider curieProvider(ManagementServerProperties management,
130+
DocsMvcEndpoint endpoint) {
131131
String path = management.getContextPath() + endpoint.getPath()
132132
+ "/#spring_boot_actuator__{rel}";
133133
return new DefaultCurieProvider("boot", new UriTemplate(path));
@@ -229,7 +229,7 @@ static class MvcEndpointAdvice implements ResponseBodyAdvice<Object> {
229229

230230
private final List<RequestMappingHandlerAdapter> handlerAdapters;
231231

232-
private final Map<MediaType, HttpMessageConverter<?>> converterCache = new ConcurrentHashMap<MediaType, HttpMessageConverter<?>>();
232+
private final Map<MediaType, HttpMessageConverter<?>> converterCache = new ConcurrentHashMap<>();
233233

234234
MvcEndpointAdvice(List<RequestMappingHandlerAdapter> handlerAdapters) {
235235
this.handlerAdapters = handlerAdapters;
@@ -248,7 +248,7 @@ public void configureHttpMessageConverters() {
248248
private void configureHttpMessageConverter(
249249
HttpMessageConverter<?> messageConverter) {
250250
if (messageConverter instanceof TypeConstrainedMappingJackson2HttpMessageConverter) {
251-
List<MediaType> supportedMediaTypes = new ArrayList<MediaType>(
251+
List<MediaType> supportedMediaTypes = new ArrayList<>(
252252
messageConverter.getSupportedMediaTypes());
253253
supportedMediaTypes.add(ActuatorMediaTypes.APPLICATION_ACTUATOR_V1_JSON);
254254
((AbstractHttpMessageConverter<?>) messageConverter)

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private Map<String, DataSource> filterDataSources(
201201
if (candidates == null) {
202202
return null;
203203
}
204-
Map<String, DataSource> dataSources = new LinkedHashMap<String, DataSource>();
204+
Map<String, DataSource> dataSources = new LinkedHashMap<>();
205205
for (Map.Entry<String, DataSource> entry : candidates.entrySet()) {
206206
if (!(entry.getValue() instanceof AbstractRoutingDataSource)) {
207207
dataSources.put(entry.getKey(), entry.getValue());

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthMvcEndpointProperties.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2014 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ public class HealthMvcEndpointProperties {
3636
* Mapping of health statuses to HttpStatus codes. By default, registered health
3737
* statuses map to sensible defaults (i.e. UP maps to 200).
3838
*/
39-
private Map<String, HttpStatus> mapping = new HashMap<String, HttpStatus>();
39+
private Map<String, HttpStatus> mapping = new HashMap<>();
4040

4141
public Map<String, HttpStatus> getMapping() {
4242
return this.mapping;

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/JolokiaProperties.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ public class JolokiaProperties {
3434
* Jolokia settings. These are traditionally set using servlet parameters. Refer to
3535
* the documentation of Jolokia for more details.
3636
*/
37-
private Map<String, String> config = new HashMap<String, String>();
37+
private Map<String, String> config = new HashMap<>();
3838

3939
public Map<String, String> getConfig() {
4040
return this.config;

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/LinksEnhancer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@ public void addEndpointLinks(ResourceSupport resource, String self) {
5050
resource.add(linkTo(LinksEnhancer.class).slash(this.rootPath + self)
5151
.withSelfRel());
5252
}
53-
MultiValueMap<String, String> added = new LinkedMultiValueMap<String, String>();
53+
MultiValueMap<String, String> added = new LinkedMultiValueMap<>();
5454
for (MvcEndpoint endpoint : this.endpoints.getEndpoints()) {
5555
if (!endpoint.getPath().equals(self)) {
5656
String rel = getRel(endpoint);

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementContextConfigurationsImportSelector.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public String[] selectImports(AnnotationMetadata metadata) {
5353
// Find all management context configuration classes, filtering duplicates
5454
List<ManagementConfiguration> configurations = getConfigurations();
5555
OrderComparator.sort(configurations);
56-
List<String> names = new ArrayList<String>();
56+
List<String> names = new ArrayList<>();
5757
for (ManagementConfiguration configuration : configurations) {
5858
names.add(configuration.getClassName());
5959
}
@@ -63,7 +63,7 @@ public String[] selectImports(AnnotationMetadata metadata) {
6363
private List<ManagementConfiguration> getConfigurations() {
6464
SimpleMetadataReaderFactory readerFactory = new SimpleMetadataReaderFactory(
6565
this.classLoader);
66-
List<ManagementConfiguration> configurations = new ArrayList<ManagementConfiguration>();
66+
List<ManagementConfiguration> configurations = new ArrayList<>();
6767
for (String className : loadFactoryNames()) {
6868
getConfiguration(readerFactory, configurations, className);
6969
}

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public String[] getPaths(EndpointHandlerMapping endpointHandlerMapping) {
295295
return NO_PATHS;
296296
}
297297
Set<? extends MvcEndpoint> endpoints = endpointHandlerMapping.getEndpoints();
298-
Set<String> paths = new LinkedHashSet<String>(endpoints.size());
298+
Set<String> paths = new LinkedHashSet<>(endpoints.size());
299299
for (MvcEndpoint endpoint : endpoints) {
300300
if (isIncluded(endpoint)) {
301301
String path = endpointHandlerMapping.getPath(endpoint.getPath());
@@ -361,10 +361,11 @@ public boolean matches(HttpServletRequest request) {
361361
private RequestMatcher createDelegate() {
362362
ServerProperties server = this.contextResolver.getApplicationContext()
363363
.getBean(ServerProperties.class);
364-
List<RequestMatcher> matchers = new ArrayList<RequestMatcher>();
364+
List<RequestMatcher> matchers = new ArrayList<>();
365365
EndpointHandlerMapping endpointHandlerMapping = getRequiredEndpointHandlerMapping();
366366
for (String path : this.endpointPaths.getPaths(endpointHandlerMapping)) {
367-
matchers.add(new AntPathRequestMatcher(server.getServlet().getPath(path)));
367+
matchers.add(
368+
new AntPathRequestMatcher(server.getServlet().getPath(path)));
368369
}
369370
return (matchers.isEmpty() ? MATCH_NONE : new OrRequestMatcher(matchers));
370371
}

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/MetricExportAutoConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -78,7 +78,7 @@ public MetricExportAutoConfiguration(MetricExportProperties properties,
7878
@ConditionalOnMissingBean(name = "metricWritersMetricExporter")
7979
public SchedulingConfigurer metricWritersMetricExporter(
8080
MetricExportProperties properties) {
81-
Map<String, GaugeWriter> writers = new HashMap<String, GaugeWriter>();
81+
Map<String, GaugeWriter> writers = new HashMap<>();
8282
MetricReader reader = this.endpointReader;
8383
if (reader == null && !CollectionUtils.isEmpty(this.readers)) {
8484
reader = new CompositeMetricReader(

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/MetricFilterProperties.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ public class MetricFilterProperties {
4343
private Set<MetricsFilterSubmission> counterSubmissions;
4444

4545
public MetricFilterProperties() {
46-
this.gaugeSubmissions = new HashSet<MetricsFilterSubmission>(
47-
EnumSet.of(MetricsFilterSubmission.MERGED));
48-
this.counterSubmissions = new HashSet<MetricsFilterSubmission>(
46+
this.gaugeSubmissions = new HashSet<>(EnumSet.of(MetricsFilterSubmission.MERGED));
47+
this.counterSubmissions = new HashSet<>(
4948
EnumSet.of(MetricsFilterSubmission.MERGED));
5049
}
5150

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/MetricsFilter.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -65,7 +65,7 @@ final class MetricsFilter extends OncePerRequestFilter {
6565
private static final Set<PatternReplacer> STATUS_REPLACERS;
6666

6767
static {
68-
Set<PatternReplacer> replacements = new LinkedHashSet<PatternReplacer>();
68+
Set<PatternReplacer> replacements = new LinkedHashSet<>();
6969
replacements.add(new PatternReplacer("\\{(.+?)(?::.+)?\\}", 0, "-$1-"));
7070
replacements.add(new PatternReplacer("**", Pattern.LITERAL, "-star-star-"));
7171
replacements.add(new PatternReplacer("*", Pattern.LITERAL, "-star-"));
@@ -77,7 +77,7 @@ final class MetricsFilter extends OncePerRequestFilter {
7777
private static final Set<PatternReplacer> KEY_REPLACERS;
7878

7979
static {
80-
Set<PatternReplacer> replacements = new LinkedHashSet<PatternReplacer>();
80+
Set<PatternReplacer> replacements = new LinkedHashSet<>();
8181
replacements.add(new PatternReplacer("/", Pattern.LITERAL, "."));
8282
replacements.add(new PatternReplacer("..", Pattern.LITERAL, "."));
8383
KEY_REPLACERS = Collections.unmodifiableSet(replacements);

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/AbstractJmxCacheStatisticsProvider.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@ public abstract class AbstractJmxCacheStatisticsProvider<C extends Cache>
5050

5151
private MBeanServer mBeanServer;
5252

53-
private final Map<String, ObjectNameWrapper> caches = new ConcurrentHashMap<String, ObjectNameWrapper>();
53+
private final Map<String, ObjectNameWrapper> caches = new ConcurrentHashMap<>();
5454

5555
@Override
5656
public CacheStatistics getCacheStatistics(CacheManager cacheManager, C cache) {

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/DefaultCacheStatistics.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2015 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@ public class DefaultCacheStatistics implements CacheStatistics {
3737

3838
@Override
3939
public Collection<Metric<?>> toMetrics(String prefix) {
40-
Collection<Metric<?>> result = new ArrayList<Metric<?>>();
40+
Collection<Metric<?>> result = new ArrayList<>();
4141
addMetric(result, prefix + "size", getSize());
4242
addMetric(result, prefix + "hit.ratio", getHitRatio());
4343
addMetric(result, prefix + "miss.ratio", getMissRatio());
@@ -83,7 +83,7 @@ public void setMissRatio(Double missRatio) {
8383
private <T extends Number> void addMetric(Collection<Metric<?>> metrics, String name,
8484
T value) {
8585
if (value != null) {
86-
metrics.add(new Metric<T>(name, value));
86+
metrics.add(new Metric<>(name, value));
8787
}
8888
}
8989

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cloudfoundry/CloudFoundryActuatorAutoConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -60,7 +60,7 @@ public class CloudFoundryActuatorAutoConfiguration {
6060
public CloudFoundryEndpointHandlerMapping cloudFoundryEndpointHandlerMapping(
6161
MvcEndpoints mvcEndpoints, RestTemplateBuilder restTemplateBuilder,
6262
Environment environment) {
63-
Set<NamedMvcEndpoint> endpoints = new LinkedHashSet<NamedMvcEndpoint>(
63+
Set<NamedMvcEndpoint> endpoints = new LinkedHashSet<>(
6464
mvcEndpoints.getEndpoints(NamedMvcEndpoint.class));
6565
HandlerInterceptor securityInterceptor = getSecurityInterceptor(
6666
restTemplateBuilder, environment);

0 commit comments

Comments
 (0)