aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-01-12 12:36:36 -0500
committerOmair Majid <[email protected]>2011-01-12 12:36:36 -0500
commit9679f89fa9b4db346cf898924e20e630c509838c (patch)
tree683713d8ad0438b680973db20eeca46f9f1832b4
parent6fd78473a164b5ff6ac12106bc16e52383214451 (diff)
add missing generic type in JNLPFile
2011-01-12 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/JNLPFile: Add missing generic type to info. (getInformation): Remove redundant cast.
-rw-r--r--ChangeLog5
-rw-r--r--netx/net/sourceforge/jnlp/JNLPFile.java4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9f4d60a..dd10e9e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2011-01-12 Omair Majid <[email protected]>
+ * netx/net/sourceforge/jnlp/JNLPFile: Add missing generic type to info.
+ (getInformation): Remove redundant cast.
+
+2011-01-12 Omair Majid <[email protected]>
+
* netx/javax/jnlp/UnavailableServiceException.java: Remove unused
imports.
* netx/net/sourceforge/jnlp/AppletDesc.java: Likewise.
diff --git a/netx/net/sourceforge/jnlp/JNLPFile.java b/netx/net/sourceforge/jnlp/JNLPFile.java
index 58e340b..bf1c96b 100644
--- a/netx/net/sourceforge/jnlp/JNLPFile.java
+++ b/netx/net/sourceforge/jnlp/JNLPFile.java
@@ -80,7 +80,7 @@ public class JNLPFile {
protected Version specVersion;
/** information */
- protected List info;
+ protected List<InformationDesc> info;
protected UpdateDesc update;
@@ -326,7 +326,7 @@ public class JNLPFile {
List<Object> result = new ArrayList<Object>();
for (int i = 0; i < info.size(); i++) {
- InformationDesc infoDesc = (InformationDesc) info.get(i);
+ InformationDesc infoDesc = info.get(i);
if (localMatches(locale, infoDesc.getLocales()))
if (localMatches(locale, infoDesc.getLocales()))