aboutsummaryrefslogtreecommitdiffstats
path: root/netx
diff options
context:
space:
mode:
Diffstat (limited to 'netx')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java10
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) ) {