# HG changeset patch # User Jiri Vanek # Date 1383125803 -3600 # Node ID 511a213f02063609fdbc0cc8f636dbaff4e8922f # Parent 175dda8f15e53aedf95f61d9a4d702e26ce5f745 netx/net/sourceforge/jnlp/JARDesc.java: made immutable (location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final diff -r 175dda8f15e5 -r 511a213f0206 ChangeLog --- a/ChangeLog Fri Oct 25 11:07:08 2013 +0200 +++ b/ChangeLog Wed Oct 30 10:36:43 2013 +0100 @@ -1,3 +1,8 @@ +2013-10-30 Jiri Vanek + + * netx/net/sourceforge/jnlp/JARDesc.java: made immutable + (location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final + 2013-10-25 Jiri Vanek all output messages redirected to PLUGIN_{DEBUG,ERROR} macros diff -r 175dda8f15e5 -r 511a213f0206 netx/net/sourceforge/jnlp/JARDesc.java --- a/netx/net/sourceforge/jnlp/JARDesc.java Fri Oct 25 11:07:08 2013 +0200 +++ b/netx/net/sourceforge/jnlp/JARDesc.java Wed Oct 30 10:36:43 2013 +0100 @@ -21,31 +21,32 @@ /** * 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.