From 5bc274ca09b5456694e2ea375c85d82da8bc8d43 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 12 Apr 2016 13:21:31 -0700 Subject: [PATCH] Polish --- .../java/org/springframework/boot/loader/tools/Repackager.java | 2 ++ .../main/java/org/springframework/boot/loader/jar/JarFile.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java index ae56ff2b11..35a373221d 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java @@ -189,6 +189,7 @@ public class Repackager { final List unpackLibraries = new ArrayList(); final List standardLibraries = new ArrayList(); libraries.doWithLibraries(new LibraryCallback() { + @Override public void library(Library library) throws IOException { File file = library.getFile(); @@ -201,6 +202,7 @@ public class Repackager { } } } + }); writer.writeManifest(buildManifest(sourceJar)); Set seen = new HashSet(); diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java index cb69539de7..917a950b57 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java @@ -259,6 +259,7 @@ public class JarFile extends java.util.jar.JarFile { private JarFile createJarFileFromDirectoryEntry(JarEntry entry) throws IOException { final AsciiBytes sourceName = new AsciiBytes(entry.getName()); JarEntryFilter filter = new JarEntryFilter() { + @Override public AsciiBytes apply(AsciiBytes name) { if (name.startsWith(sourceName) && !name.equals(sourceName)) { @@ -266,6 +267,7 @@ public class JarFile extends java.util.jar.JarFile { } return null; } + }; return new JarFile(this.rootFile, this.pathFromRoot + "!/"