From e9aab1e90cfaa493f0a6b7e9a9ae6b3425762661 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 17 Jun 2014 21:14:00 -0700 Subject: [PATCH] Drop JarEntryFilters from constructor and methods Drop JarEntryFilter arguments from the JarFile constructor and the getNestedJarFile methods. Filtered JarFiles can still be obtained by using the getFilteredJarFile() method. This helps simplify the code a little and will make it easier to add caching. See gh-1119 --- .../boot/loader/jar/JarFile.java | 51 ++++++++----------- 1 file changed, 21 insertions(+), 30 deletions(-) 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 0e2ff7cbd2..739e6b8051 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 @@ -43,15 +43,12 @@ import org.springframework.boot.loader.util.AsciiBytes; * Extended variant of {@link java.util.jar.JarFile} that behaves in the same way but * offers the following additional functionality. * * @@ -90,21 +87,19 @@ public class JarFile extends java.util.jar.JarFile implements Iterable