aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/PluginBridge.java
diff options
context:
space:
mode:
Diffstat (limited to 'netx/net/sourceforge/jnlp/PluginBridge.java')
-rw-r--r--netx/net/sourceforge/jnlp/PluginBridge.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/PluginBridge.java b/netx/net/sourceforge/jnlp/PluginBridge.java
index 7228521..db4f7b2 100644
--- a/netx/net/sourceforge/jnlp/PluginBridge.java
+++ b/netx/net/sourceforge/jnlp/PluginBridge.java
@@ -324,7 +324,10 @@ public class PluginBridge extends JNLPFile {
} catch (MalformedURLException ex) { /* Ignored */
}
} else if (launchType.equals(ExtensionDesc.class)) {
- return (List<T>) extensionJars; // this list is populated when the PluginBridge is first constructed
+ // We hope this is a safe list of JarDesc objects
+ @SuppressWarnings("unchecked")
+ List<T> castList = (List<T>) extensionJars; // this list is populated when the PluginBridge is first constructed
+ return castList;
}
return sharedResources.getResources(launchType);
}