Skip to content

Commit e8b7d0f

Browse files
committed
Polish
1 parent 70eee61 commit e8b7d0f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2018 the original author or authors.
2+
* Copyright 2012-2019 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.
@@ -560,7 +560,7 @@ public void nonExistentUploadDirectoryIsCreatedUponMultipartUpload()
560560
throws IOException, URISyntaxException {
561561
TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory(
562562
0);
563-
AtomicReference<ServletContext> servletContextReference = new AtomicReference<>();
563+
final AtomicReference<ServletContext> servletContextReference = new AtomicReference<ServletContext>();
564564
factory.addInitializers(new ServletContextInitializer() {
565565

566566
@Override
@@ -588,11 +588,11 @@ protected void doPost(HttpServletRequest req,
588588
FileSystemUtils.deleteRecursively(temp);
589589
RestTemplate restTemplate = new RestTemplate();
590590
HttpHeaders headers = new HttpHeaders();
591-
MultiValueMap<String, Object> body = new LinkedMultiValueMap<>();
591+
MultiValueMap<String, Object> body = new LinkedMultiValueMap<String, Object>();
592592
body.add("file", new ByteArrayResource(new byte[1024 * 1024]));
593593
headers.setContentType(MediaType.MULTIPART_FORM_DATA);
594-
HttpEntity<MultiValueMap<String, Object>> requestEntity = new HttpEntity<>(body,
595-
headers);
594+
HttpEntity<MultiValueMap<String, Object>> requestEntity = new HttpEntity<MultiValueMap<String, Object>>(
595+
body, headers);
596596
ResponseEntity<String> response = restTemplate
597597
.postForEntity(getLocalUrl("/upload"), requestEntity, String.class);
598598
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);

0 commit comments

Comments
 (0)