aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2010-12-08 12:09:00 -0500
committerOmair Majid <[email protected]>2010-12-08 12:09:00 -0500
commit5fe5e4ae2d046a6520cc33718feaa93c3788bb64 (patch)
treed8c42e9feb50ee8725c9f75acd055b26070f3070 /netx/net/sourceforge/jnlp
parent2865d3c8d9318c5613be8c2ce9c293922b940775 (diff)
remove check for jnlp spec number
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.
Diffstat (limited to 'netx/net/sourceforge/jnlp')
-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
3 files changed, 0 insertions, 22 deletions
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.