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 /netx/net/sourceforge/jnlp | |
parent | f84a75fee1efac58cbb49414635a3655b99a4124 (diff) |
netx/net/sourceforge/jnlp/JARDesc.java: made immutable
(location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final
Diffstat (limited to 'netx/net/sourceforge/jnlp')
-rw-r--r-- | netx/net/sourceforge/jnlp/JARDesc.java | 15 |
1 files changed, 8 insertions, 7 deletions
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. |