From 5c1af20ae6967095c67d2859824af90ea1bf22d5 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Wed, 30 Oct 2013 10:36:03 +0100 Subject: netx/net/sourceforge/jnlp/JARDesc.java: made immutable (location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final --- netx/net/sourceforge/jnlp/JARDesc.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'netx/net/sourceforge/jnlp') 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 Jon A. Maxwell (JAM) - 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. -- cgit v1.2.3