diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/JARDesc.java | 15 |
2 files changed, 13 insertions, 7 deletions
@@ -1,3 +1,8 @@ +2013-10-30 Jiri Vanek <[email protected]> + + * netx/net/sourceforge/jnlp/JARDesc.java: made immutable + (location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final + 2013-10-29 Andrew Azores <[email protected]> Fix PR1513, signed applets with external main-class support diff --git a/netx/net/sourceforge/jnlp/JARDesc.java b/netx/net/sourceforge/jnlp/JARDesc.java index 87ef79c..6af9d20 100644 --- a/netx/net/sourceforge/jnlp/JARDesc.java +++ b/netx/net/sourceforge/jnlp/JARDesc.java @@ -21,31 +21,32 @@ import java.net.URL; /** * The JAR element. * + * This class is immutable and thread safe * @author <a href="mailto:[email protected]">Jon A. Maxwell (JAM)</a> - initial author * @version $Revision: 1.6 $ */ public class JARDesc { /** the location of the JAR file */ - private URL location; + private final URL location; /** the required JAR versions, or null */ - private Version version; + private final Version version; /** the part name */ - private String part; + private final String part; /** whether to load the JAR on demand */ - private boolean lazy; + private final boolean lazy; /** whether the JAR contains the main class */ - private boolean main; + private final boolean main; /** whether the JAR contains native libraries */ - private boolean nativeJar; + private final boolean nativeJar; /** whether the JAR can be cached */ - private boolean cacheable; + private final boolean cacheable; /** * Create a JAR descriptor. |