diff options
author | Sven Gothel <[email protected]> | 2014-01-31 07:35:07 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-01-31 07:35:07 +0100 |
commit | d7c49c05158f34bb8fd62bbc7374131711cc92b8 (patch) | |
tree | 6039d10bd07584f66501615dd3c5245893160c14 | |
parent | 8c3a54316dbd003c1b265f74e6b18eb5fb48eb4b (diff) |
JNLPClassLoader: Formatting .. and user final qualifier
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java index 85bdaa2..f889161 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java @@ -1139,7 +1139,7 @@ public class JNLPClassLoader extends URLClassLoader { */ public void setApplication(ApplicationInstance app) { if (this.app != null) { - OutputController.getLogger().log(new IllegalStateException("Application can only be set once")); + OutputController.getLogger().log(new IllegalStateException("Application can only be set once")); return; } @@ -1573,8 +1573,7 @@ public class JNLPClassLoader extends URLClassLoader { synchronized (jarIndexes) { for (JarIndex index : jarIndexes) { // Non-generic code in sun.misc.JarIndex - @SuppressWarnings("unchecked") - LinkedList<String> jarList = index.get(name.replace('.', '/')); + final LinkedList<String> jarList = index.get(name.replace('.', '/')); if (jarList != null) { for (String jarName : jarList) { @@ -2220,10 +2219,11 @@ public class JNLPClassLoader extends URLClassLoader { public void decrementLoaderUseCount() { // For use by trusted code only - if (System.getSecurityManager() != null) + if (System.getSecurityManager() != null) { System.getSecurityManager().checkPermission(new AllPermission()); + } - String uniqueKey = file.getUniqueKey(); + final String uniqueKey = file.getUniqueKey(); // NB: There will only ever be one class-loader per unique-key synchronized ( getUniqueKeyLock(uniqueKey) ) { |