From ae9a03e58cd6cdc680b1a91e82b01646e0b0ac64 Mon Sep 17 00:00:00 2001 From: Robin Bygrave Date: Sat, 1 Aug 2015 20:11:21 +1200 Subject: [PATCH] No effective change - code cleanup - remove unused --- .../server/util/ClassPathSearchFilter.java | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/src/main/java/com/avaje/ebeaninternal/server/util/ClassPathSearchFilter.java b/src/main/java/com/avaje/ebeaninternal/server/util/ClassPathSearchFilter.java index 8ea018a2a..9eedb7d1c 100644 --- a/src/main/java/com/avaje/ebeaninternal/server/util/ClassPathSearchFilter.java +++ b/src/main/java/com/avaje/ebeaninternal/server/util/ClassPathSearchFilter.java @@ -16,8 +16,6 @@ public class ClassPathSearchFilter { private boolean defaultJarMatch = false; - private String ebeanJarPrefix = "ebean"; - private final HashSet includePackageSet = new HashSet(); private final HashSet excludePackageSet = new HashSet(); @@ -30,18 +28,6 @@ public class ClassPathSearchFilter { addDefaultExcludePackages(); } - /** - * Set the name of the ebean jar file. Used with class path search to find - * the "Meta" entity beans that are contained within the ebean jar. - *

- * You only need to set this if the ebean jar file name starts with - * something other than ebean. - *

- */ - public void setEbeanJarPrefix(String ebeanJarPrefix) { - this.ebeanJarPrefix = ebeanJarPrefix; - } - /** * Return the explicit packages that should be searched. */ @@ -75,17 +61,6 @@ public class ClassPathSearchFilter { excludePackage("com.avaje.lib"); } - /** - * Clear all entries from the exclude packages list. - *

- * This includes the entries added by addDefaultExcludePackages() which is - * done on construction. - *

- */ - public void clearExcludePackages() { - excludePackageSet.clear(); - } - /** * Set the default for jar matching when a jar is neither explicitly * included or excluded. @@ -116,13 +91,6 @@ public class ClassPathSearchFilter { excludePackageSet.add(pckgName); } - /** - * Add a jar to explicitly exclude in the search. - */ - public void excludeJar(String jarName) { - excludeJarSet.add(jarName); - } - /** * Add a jar to explicitly include in the search. */ @@ -155,9 +123,6 @@ public class ClassPathSearchFilter { * Return true if the jar should be included in the search. */ public boolean isSearchJar(String jarName) { - if (jarName.startsWith(ebeanJarPrefix)) { - return true; - } if (containedIn(includeJarSet, jarName)) { return true;