aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog11
-rw-r--r--netx/net/sourceforge/jnlp/JNLPFile.java7
-rw-r--r--netx/net/sourceforge/jnlp/Parser.java14
-rw-r--r--netx/net/sourceforge/jnlp/resources/Messages.properties1
4 files changed, 11 insertions, 22 deletions
diff --git a/ChangeLog b/ChangeLog
index 6b57c31..63b29d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
2010-12-08 Omair Majid <[email protected]>
+ * netx/net/sourceforge/jnlp/JNLPFile.java
+ (getSupportedVersions): Remove method.
+ * netx/net/sourceforge/jnlp/Parser.java: Remove supportedVersions.
+ (Parser(JNLPFile,URL,Node,boolean,boolean)): Remove check for supported
+ version.
+ (getSupportedVersions): Remove method.
+ * netx/net/sourceforge/jnlp/resources/Messages.properties:
+ Remove PSpecUnsupported.
+
+2010-12-08 Omair Majid <[email protected]>
+
* netx/net/sourceforge/jnlp/tools/JarRunner.java: Remove unused class.
* netx/net/sourceforge/jnlp/tools/JarSignerResources.java: Remove unused
class.
diff --git a/netx/net/sourceforge/jnlp/JNLPFile.java b/netx/net/sourceforge/jnlp/JNLPFile.java
index 24a6566..58e340b 100644
--- a/netx/net/sourceforge/jnlp/JNLPFile.java
+++ b/netx/net/sourceforge/jnlp/JNLPFile.java
@@ -257,13 +257,6 @@ public class JNLPFile {
}
/**
- * Returns the JNLP specification versions supported.
- */
- public static Version getSupportedVersions() {
- return Parser.getSupportedVersions();
- }
-
- /**
* Returns the JNLP file's title. This method returns the same
* value as InformationDesc.getTitle().
*/
diff --git a/netx/net/sourceforge/jnlp/Parser.java b/netx/net/sourceforge/jnlp/Parser.java
index 5c9ad01..f2cfae2 100644
--- a/netx/net/sourceforge/jnlp/Parser.java
+++ b/netx/net/sourceforge/jnlp/Parser.java
@@ -65,9 +65,6 @@ class Parser {
};
*/
- /** the supported JNLP file versions */
- private static Version supportedVersions = new Version("1.0 1.1 1.2 1.3 1.4 1.5 1.6 6.0");
-
// fix: some descriptors need to use the jnlp file at a later
// date and having file ref lets us pass it to their
// constructors
@@ -128,22 +125,11 @@ class Parser {
this.base = (codebase != null) ? codebase : base; // if codebase not specified use default codebase
fileLocation = getURL(root, "href", this.base);
- // ensure version is supported
- if (!supportedVersions.matchesAny(spec))
- throw new ParseException(R("PSpecUnsupported", supportedVersions));
-
// normalize the text nodes
root.normalize();
}
/**
- * Return the JNLP specification versions supported.
- */
- public static Version getSupportedVersions() {
- return supportedVersions;
- }
-
- /**
* Returns the file version.
*/
public Version getFileVersion() {
diff --git a/netx/net/sourceforge/jnlp/resources/Messages.properties b/netx/net/sourceforge/jnlp/resources/Messages.properties
index ed9a69c..4c04906 100644
--- a/netx/net/sourceforge/jnlp/resources/Messages.properties
+++ b/netx/net/sourceforge/jnlp/resources/Messages.properties
@@ -87,7 +87,6 @@ LAskToContinue=Would you still like to continue running this application?
# Parser
PInvalidRoot=Root node is not a jnlp node
-PSpecUnsupported=Spec version not supported (supports {0})
PNoResources=No resources section defined
PUntrustedNative=nativelib element cannot be specified unless a trusted environment is requested.
PExtensionHasJ2SE=j2se element cannot be specified in a component extension file.