From e8b7d0fcec43861b1c11942ead5700e4bfeb4982 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 29 Mar 2019 11:22:42 +0000 Subject: [PATCH] Polish --- .../TomcatEmbeddedServletContainerFactoryTests.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java b/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java index a2e5b6ce85..e3b3c81e9c 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2018 the original author or authors. + * Copyright 2012-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -560,7 +560,7 @@ public class TomcatEmbeddedServletContainerFactoryTests throws IOException, URISyntaxException { TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory( 0); - AtomicReference servletContextReference = new AtomicReference<>(); + final AtomicReference servletContextReference = new AtomicReference(); factory.addInitializers(new ServletContextInitializer() { @Override @@ -588,11 +588,11 @@ public class TomcatEmbeddedServletContainerFactoryTests FileSystemUtils.deleteRecursively(temp); RestTemplate restTemplate = new RestTemplate(); HttpHeaders headers = new HttpHeaders(); - MultiValueMap body = new LinkedMultiValueMap<>(); + MultiValueMap body = new LinkedMultiValueMap(); body.add("file", new ByteArrayResource(new byte[1024 * 1024])); headers.setContentType(MediaType.MULTIPART_FORM_DATA); - HttpEntity> requestEntity = new HttpEntity<>(body, - headers); + HttpEntity> requestEntity = new HttpEntity>( + body, headers); ResponseEntity response = restTemplate .postForEntity(getLocalUrl("/upload"), requestEntity, String.class); assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);