/hg/icedtea-web: netx/net/sourceforge/jnlp/JARDesc.java: made im...
jvanek at icedtea.classpath.org
jvanek at icedtea.classpath.org
Wed Oct 30 02:50:48 PDT 2013
changeset 14a8ee171687 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=14a8ee171687
author: Jiri Vanek <jvanek at redhat.com>
date: Wed Oct 30 10:36:03 2013 +0100
netx/net/sourceforge/jnlp/JARDesc.java: made immutable
(location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final
diffstat:
ChangeLog | 5 +++++
netx/net/sourceforge/jnlp/JARDesc.java | 15 ++++++++-------
2 files changed, 13 insertions(+), 7 deletions(-)
diffs (55 lines):
diff -r 39ff18bc291f -r 14a8ee171687 ChangeLog
--- a/ChangeLog Tue Oct 29 17:30:18 2013 -0400
+++ b/ChangeLog Wed Oct 30 10:36:03 2013 +0100
@@ -1,3 +1,8 @@
+2013-10-30 Jiri Vanek <jvanek at redhat.com>
+
+ * netx/net/sourceforge/jnlp/JARDesc.java: made immutable
+ (location)(version)(part)(lazy)(main)(nativeJar)(cacheable) made final
+
2013-10-29 Andrew Azores <aazores at redhat.com>
Fix PR1513, signed applets with external main-class support
diff -r 39ff18bc291f -r 14a8ee171687 netx/net/sourceforge/jnlp/JARDesc.java
--- a/netx/net/sourceforge/jnlp/JARDesc.java Tue Oct 29 17:30:18 2013 -0400
+++ b/netx/net/sourceforge/jnlp/JARDesc.java Wed Oct 30 10:36:03 2013 +0100
@@ -21,31 +21,32 @@
/**
* The JAR element.
*
+ * This class is immutable and thread safe
* @author <a href="mailto:jmaxwell at 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.
More information about the distro-pkg-dev
mailing list