changeset 766:511a213f0206

netx/net/sourceforge/jnlp/JARDesc.java: made immutable (location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final
author Jiri Vanek <jvanek@redhat.com>
date Wed, 30 Oct 2013 10:36:43 +0100
parents 175dda8f15e5
children acbada276d23
files ChangeLog netx/net/sourceforge/jnlp/JARDesc.java
diffstat 2 files changed, 13 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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  <jvanek@redhat.com>
+
+	* netx/net/sourceforge/jnlp/JARDesc.java: made immutable
+	(location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final
+
 2013-10-25  Jiri Vanek  <jvanek@redhat.com>
 
 	all output messages redirected to PLUGIN_{DEBUG,ERROR} macros
--- 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 <a href="mailto:jmaxwell@users.sourceforge.net">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.