diff options
author | Adam Domurad <[email protected]> | 2013-04-23 12:29:13 -0400 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2013-04-23 12:29:13 -0400 |
commit | e8403ca8f62716fd3a76906b7e25cbc0d0cb5228 (patch) | |
tree | e496d8aa6fc8cb7f9a9d202c2bc9bccdaf4945da /netx | |
parent | 3c710de15296fd7f16b144586791be134129663f (diff) |
JNLPClassLoader unit tests for file leaks
Diffstat (limited to 'netx')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java index e790746..28b3d43 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java @@ -556,7 +556,7 @@ public class JNLPClassLoader extends URLClassLoader { * @param jar the jar to check * @return true if file exists AND is an invalid jar, false otherwise */ - private boolean isInvalidJar(JARDesc jar){ + boolean isInvalidJar(JARDesc jar){ File cacheFile = tracker.getCacheFile(jar.getLocation()); if (cacheFile == null) return false;//File cannot be retrieved, do not claim it is an invalid jar @@ -792,7 +792,7 @@ public class JNLPClassLoader extends URLClassLoader { * @param jars Jars that are checked to see if they contain the main class * @throws LaunchException Thrown if the signed JNLP file, within the main jar, fails to be verified or does not match */ - private void checkForMain(List<JARDesc> jars) throws LaunchException { + void checkForMain(List<JARDesc> jars) throws LaunchException { // Check launch info if (mainClass == null) { @@ -878,7 +878,7 @@ public class JNLPClassLoader extends URLClassLoader { * @param location The JAR location * @return the main class name, null if there isn't one of if there was an error */ - private String getMainClassName(URL location) { + String getMainClassName(URL location) { String mainClass = null; File f = tracker.getCacheFile(location); |