Remove redundant toString() invocation

Closes gh-7510
This commit is contained in:
Oscar Utbult 2016-11-28 19:57:59 +01:00 committed by Stephane Nicoll
parent 357d072a60
commit 88b83a909c
2 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ public class JarFileArchive implements Archive {
@Override
public String getName() {
return this.jarEntry.getName().toString();
return this.jarEntry.getName();
}
}

View File

@ -123,7 +123,7 @@ public class JarFileArchiveTests {
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;
}