Commit b35b7664 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #7527 from oscr:fix-redundant-tostring

* pr/7527:
  Remove redundant toString() invocation
parents 80da80f9 fabe35fd
......@@ -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");
}
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment