mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-27 12:39:03 +00:00
Remove redundant toString() invocation
Closes gh-7527
This commit is contained in:
committed by
Stephane Nicoll
parent
80da80f930
commit
fabe35fdc4
Regular → Executable
+1
-1
@@ -182,7 +182,7 @@ public class BasicErrorControllerIntegrationTests {
|
||||
.accept(MediaType.TEXT_HTML).build();
|
||||
ResponseEntity<String> entity = new TestRestTemplate().exchange(request,
|
||||
String.class);
|
||||
String resp = entity.getBody().toString();
|
||||
String resp = entity.getBody();
|
||||
assertThat(resp).contains("We are out of storage");
|
||||
}
|
||||
|
||||
|
||||
Regular → Executable
+1
-1
@@ -190,7 +190,7 @@ public class ExplodedArchiveTests {
|
||||
private Map<String, Archive.Entry> getEntriesMap(Archive archive) {
|
||||
Map<String, Archive.Entry> entries = new HashMap<String, Archive.Entry>();
|
||||
for (Archive.Entry entry : archive) {
|
||||
entries.put(entry.getName().toString(), entry);
|
||||
entries.put(entry.getName(), entry);
|
||||
}
|
||||
return entries;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user