diff options
author | Jiri Vanek <[email protected]> | 2013-10-30 10:36:03 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-10-30 10:36:03 +0100 |
commit | 5c1af20ae6967095c67d2859824af90ea1bf22d5 (patch) | |
tree | daae05dbdbc40a7ce97f963bc9132f0f2dd434a2 | |
parent | f84a75fee1efac58cbb49414635a3655b99a4124 (diff) |
netx/net/sourceforge/jnlp/JARDesc.java: made immutable
(location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final
-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. |