mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Remove redundant toString() invocation
Closes gh-7510
This commit is contained in:
parent
357d072a60
commit
88b83a909c
2
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/JarFileArchive.java
Normal file → Executable file
2
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/JarFileArchive.java
Normal file → Executable file
@ -219,7 +219,7 @@ public class JarFileArchive implements Archive {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return this.jarEntry.getName().toString();
|
||||
return this.jarEntry.getName();
|
||||
}
|
||||
|
||||
}
|
||||
|
2
spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/JarFileArchiveTests.java
Normal file → Executable file
2
spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/archive/JarFileArchiveTests.java
Normal file → Executable 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user