Skip to content

Commit 2930053

Browse files
committed
Polish
1 parent 76198f9 commit 2930053

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/servlet/CloudFoundryWebEndpointServletHandlerMapping.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
import javax.servlet.http.HttpServletRequest;
2626
import javax.servlet.http.HttpServletResponse;
2727

28+
import org.apache.commons.logging.Log;
29+
import org.apache.commons.logging.LogFactory;
30+
2831
import org.springframework.boot.actuate.autoconfigure.cloudfoundry.AccessLevel;
2932
import org.springframework.boot.actuate.autoconfigure.cloudfoundry.SecurityResponse;
3033
import org.springframework.boot.actuate.endpoint.EndpointId;
@@ -51,6 +54,8 @@
5154
*/
5255
class CloudFoundryWebEndpointServletHandlerMapping extends AbstractWebMvcEndpointHandlerMapping {
5356

57+
private static final Log logger = LogFactory.getLog(CloudFoundryWebEndpointServletHandlerMapping.class);
58+
5459
private final CloudFoundrySecurityInterceptor securityInterceptor;
5560

5661
private final EndpointLinksResolver linksResolver;

spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/AbstractPackagerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ static class TestLayers implements Layers {
644644

645645
private static final Layer DEFAULT_LAYER = new Layer("default");
646646

647-
private Set<Layer> layers = new LinkedHashSet<Layer>();
647+
private Set<Layer> layers = new LinkedHashSet<>();
648648

649649
private Map<String, Layer> libraries = new HashMap<>();
650650

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/JarFileTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ void jarFileEntryWithEpochTimeOfZeroShouldNotFail() throws Exception {
645645
@Test
646646
void iterator() {
647647
Iterator<JarEntry> iterator = this.jarFile.iterator();
648-
List<String> names = new ArrayList<String>();
648+
List<String> names = new ArrayList<>();
649649
while (iterator.hasNext()) {
650650
names.add(iterator.next().getName());
651651
}

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/UndertowWebServerFactoryDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ List<HttpHandlerFactory> createHttpHandlerFactories(AbstractConfigurableWebServe
189189

190190
static List<HttpHandlerFactory> createHttpHandlerFactories(Compression compression, boolean useForwardHeaders,
191191
String serverHeader, Shutdown shutdown, HttpHandlerFactory... initialHttpHandlerFactories) {
192-
List<HttpHandlerFactory> factories = new ArrayList<HttpHandlerFactory>();
192+
List<HttpHandlerFactory> factories = new ArrayList<>();
193193
factories.addAll(Arrays.asList(initialHttpHandlerFactories));
194194
if (compression != null && compression.getEnabled()) {
195195
factories.add(new CompressionHttpHandlerFactory(compression));

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertySourcesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static class TestPropertySource extends MapPropertySource implements OriginLooku
203203
}
204204

205205
private static Map<String, Object> createProperties(int index) {
206-
Map<String, Object> map = new LinkedHashMap<String, Object>();
206+
Map<String, Object> map = new LinkedHashMap<>();
207207
for (int i = 0; i < 1000; i++) {
208208
String name = "test-" + index + "-property-" + i;
209209
String value = name + "-value";

0 commit comments

Comments
 (0)