Skip to content

Commit 5bc274c

Browse files
committed
Polish
1 parent 0968d41 commit 5bc274c

File tree

2 files changed

+4
-0
lines changed
  • spring-boot-tools
    • spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools
    • spring-boot-loader/src/main/java/org/springframework/boot/loader/jar

2 files changed

+4
-0
lines changed

spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ private void repackage(JarFile sourceJar, File destination, Libraries libraries,
189189
final List<Library> unpackLibraries = new ArrayList<Library>();
190190
final List<Library> standardLibraries = new ArrayList<Library>();
191191
libraries.doWithLibraries(new LibraryCallback() {
192+
192193
@Override
193194
public void library(Library library) throws IOException {
194195
File file = library.getFile();
@@ -201,6 +202,7 @@ public void library(Library library) throws IOException {
201202
}
202203
}
203204
}
205+
204206
});
205207
writer.writeManifest(buildManifest(sourceJar));
206208
Set<String> seen = new HashSet<String>();

spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,15 @@ private JarFile createJarFileFromEntry(JarEntry entry) throws IOException {
259259
private JarFile createJarFileFromDirectoryEntry(JarEntry entry) throws IOException {
260260
final AsciiBytes sourceName = new AsciiBytes(entry.getName());
261261
JarEntryFilter filter = new JarEntryFilter() {
262+
262263
@Override
263264
public AsciiBytes apply(AsciiBytes name) {
264265
if (name.startsWith(sourceName) && !name.equals(sourceName)) {
265266
return name.substring(sourceName.length());
266267
}
267268
return null;
268269
}
270+
269271
};
270272
return new JarFile(this.rootFile,
271273
this.pathFromRoot + "!/"

0 commit comments

Comments
 (0)