Skip to content

Commit 15686ed

Browse files
committed
Reformat code
1 parent 0f6b60d commit 15686ed

File tree

43 files changed

+73
-74
lines changed

Some content is hidden

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

43 files changed

+73
-74
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public void init() {
338338

339339
@Override
340340
protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities() {
341-
return Arrays.<PropertyDescriptor<?>> asList(ROLES);
341+
return Arrays.<PropertyDescriptor<?>>asList(ROLES);
342342
}
343343

344344
}
@@ -458,7 +458,7 @@ public Iterator<InputStream> open(ResourceHandle handle) throws IOException {
458458
return Collections.singletonList(((FileHandle) handle).openStream())
459459
.iterator();
460460
}
461-
return Collections.<InputStream> emptyList().iterator();
461+
return Collections.<InputStream>emptyList().iterator();
462462
}
463463

464464
@Override

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public void customize(ConfigurableEmbeddedServletContainer container) {
112112
// the same place)
113113
this.server.customize(container);
114114
// Then reset the error pages
115-
container.setErrorPages(Collections.<ErrorPage> emptySet());
115+
container.setErrorPages(Collections.<ErrorPage>emptySet());
116116
// and add the management-specific bits
117117
container.setPort(this.managementServerProperties.getPort());
118118
container.setAddress(this.managementServerProperties.getAddress());

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private Map<String, Object> safeSerialize(ObjectMapper mapper, Object bean,
184184
return result;
185185
}
186186
catch (Exception ex) {
187-
return new HashMap<String, Object>(Collections.<String, Object> singletonMap(
187+
return new HashMap<String, Object>(Collections.<String, Object>singletonMap(
188188
"error", "Cannot serialize '" + prefix + "'"));
189189
}
190190
}

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ShutdownEndpoint.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ public ShutdownEndpoint() {
4848
public Map<String, Object> invoke() {
4949

5050
if (this.context == null) {
51-
return Collections.<String, Object> singletonMap("message",
51+
return Collections.<String, Object>singletonMap("message",
5252
"No context to shutdown.");
5353
}
5454

5555
try {
56-
return Collections.<String, Object> singletonMap("message",
56+
return Collections.<String, Object>singletonMap("message",
5757
"Shutting down, bye...");
5858
}
5959
finally {

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/audit/listener/AuditListenerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class AuditListenerTests {
3636
public void testStoredEvents() {
3737
AuditEventRepository repository = mock(AuditEventRepository.class);
3838
AuditEvent event = new AuditEvent("principal", "type",
39-
Collections.<String, Object> emptyMap());
39+
Collections.<String, Object>emptyMap());
4040
AuditListener listener = new AuditListener(repository);
4141
listener.onApplicationEvent(new AuditApplicationEvent(event));
4242
verify(repository).add(event);

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ PublicMetrics customPublicMetrics() {
171171
@Override
172172
public Collection<Metric<?>> metrics() {
173173
Metric<Integer> metric = new Metric<Integer>("foo", 1);
174-
return Collections.<Metric<?>> singleton(metric);
174+
return Collections.<Metric<?>>singleton(metric);
175175
}
176176
};
177177
}

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/AbstractEndpointTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void idOverride() throws Exception {
9797
public void isSensitiveOverride() throws Exception {
9898
this.context = new AnnotationConfigApplicationContext();
9999
PropertySource<?> propertySource = new MapPropertySource("test",
100-
Collections.<String, Object> singletonMap(this.property + ".sensitive",
100+
Collections.<String, Object>singletonMap(this.property + ".sensitive",
101101
String.valueOf(!this.sensitive)));
102102
this.context.getEnvironment().getPropertySources().addFirst(propertySource);
103103
this.context.register(this.configClass);
@@ -114,7 +114,7 @@ public void isEnabledByDefault() throws Exception {
114114
public void isEnabledFallbackToEnvironment() throws Exception {
115115
this.context = new AnnotationConfigApplicationContext();
116116
PropertySource<?> propertySource = new MapPropertySource("test",
117-
Collections.<String, Object> singletonMap(this.property + ".enabled",
117+
Collections.<String, Object>singletonMap(this.property + ".enabled",
118118
false));
119119
this.context.getEnvironment().getPropertySources().addFirst(propertySource);
120120
this.context.register(this.configClass);
@@ -127,7 +127,7 @@ Collections.<String, Object> singletonMap(this.property + ".enabled",
127127
public void isExplicitlyEnabled() throws Exception {
128128
this.context = new AnnotationConfigApplicationContext();
129129
PropertySource<?> propertySource = new MapPropertySource("test",
130-
Collections.<String, Object> singletonMap(this.property + ".enabled",
130+
Collections.<String, Object>singletonMap(this.property + ".enabled",
131131
false));
132132
this.context.getEnvironment().getPropertySources().addFirst(propertySource);
133133
this.context.register(this.configClass);
@@ -140,7 +140,7 @@ Collections.<String, Object> singletonMap(this.property + ".enabled",
140140
public void isAllEndpointsDisabled() throws Exception {
141141
this.context = new AnnotationConfigApplicationContext();
142142
PropertySource<?> propertySource = new MapPropertySource("test",
143-
Collections.<String, Object> singletonMap("endpoints.enabled", false));
143+
Collections.<String, Object>singletonMap("endpoints.enabled", false));
144144
this.context.getEnvironment().getPropertySources().addFirst(propertySource);
145145
this.context.register(this.configClass);
146146
this.context.refresh();

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/MetricsEndpointTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public MetricsEndpoint endpoint() {
106106
PublicMetrics metrics = new PublicMetrics() {
107107
@Override
108108
public Collection<Metric<?>> metrics() {
109-
return Collections.<Metric<?>> singleton(metric);
109+
return Collections.<Metric<?>>singleton(metric);
110110
}
111111
};
112112
return new MetricsEndpoint(metrics);

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/RequestMappingEndpointTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void concreteUrlMappings() {
5353
mapping.setApplicationContext(new StaticApplicationContext());
5454
mapping.initApplicationContext();
5555
this.endpoint.setHandlerMappings(Collections
56-
.<AbstractUrlHandlerMapping> singletonList(mapping));
56+
.<AbstractUrlHandlerMapping>singletonList(mapping));
5757
Map<String, Object> result = this.endpoint.invoke();
5858
assertEquals(1, result.size());
5959
@SuppressWarnings("unchecked")
@@ -114,7 +114,7 @@ public void concreteMethodMappings() {
114114
mapping.setApplicationContext(new StaticApplicationContext());
115115
mapping.afterPropertiesSet();
116116
this.endpoint.setMethodMappings(Collections
117-
.<AbstractHandlerMethodMapping<?>> singletonList(mapping));
117+
.<AbstractHandlerMethodMapping<?>>singletonList(mapping));
118118
Map<String, Object> result = this.endpoint.invoke();
119119
assertEquals(1, result.size());
120120
assertTrue(result.keySet().iterator().next().contains("/dump"));

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/TraceEndpointTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static class Config {
5353
@Bean
5454
public TraceEndpoint endpoint() {
5555
TraceRepository repository = new InMemoryTraceRepository();
56-
repository.add(Collections.<String, Object> singletonMap("a", "b"));
56+
repository.add(Collections.<String, Object>singletonMap("a", "b"));
5757
return new TraceEndpoint(repository);
5858
}
5959
}

0 commit comments

Comments
 (0)