diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java old mode 100644 new mode 100755 index 59dec7f769..a0b567d175 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/BasicErrorControllerIntegrationTests.java @@ -182,7 +182,7 @@ public class BasicErrorControllerIntegrationTests { .accept(MediaType.TEXT_HTML).build(); ResponseEntity entity = new TestRestTemplate().exchange(request, String.class); - String resp = entity.getBody().toString(); + String resp = entity.getBody(); assertThat(resp).contains("We are out of storage"); } diff --git a/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/ExplodedArchiveTests.java b/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/ExplodedArchiveTests.java old mode 100644 new mode 100755 index 5eb16f948b..3166ed3bd9 --- a/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/ExplodedArchiveTests.java +++ b/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/ExplodedArchiveTests.java @@ -190,7 +190,7 @@ public class ExplodedArchiveTests { private Map getEntriesMap(Archive archive) { Map entries = new HashMap(); for (Archive.Entry entry : archive) { - entries.put(entry.getName().toString(), entry); + entries.put(entry.getName(), entry); } return entries; }