/hg/icedtea-web: Make CacheDirectory final and not instantiable.

asu at icedtea.classpath.org asu at icedtea.classpath.org
Wed Apr 13 14:22:00 PDT 2011


changeset 1e661bc821f8 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=1e661bc821f8
author: Andrew Su <asu at redhat.com>
date: Wed Apr 13 17:23:49 2011 -0400

	Make CacheDirectory final and not instantiable.


diffstat:

 ChangeLog                                           |  6 ++++++
 netx/net/sourceforge/jnlp/cache/CacheDirectory.java |  6 +++++-
 2 files changed, 11 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r c84f2e5b039f -r 1e661bc821f8 ChangeLog
--- a/ChangeLog	Wed Apr 13 12:18:38 2011 -0400
+++ b/ChangeLog	Wed Apr 13 17:23:49 2011 -0400
@@ -1,3 +1,9 @@
+2011-04-13  Andrew Su  <asu at redhat.com>
+
+	* netx/net/sourceforge/jnlp/cache/CacheDirectory.java:
+	Added final modifier to class declaration.
+	(CacheDirectory): New private constructor.
+
 2011-04-12  Denis Lila  <dlila at redhat.com>
 
 	* plugin/icedteanp/java/sun/applet/PluginAppletViewer.java
diff -r c84f2e5b039f -r 1e661bc821f8 netx/net/sourceforge/jnlp/cache/CacheDirectory.java
--- a/netx/net/sourceforge/jnlp/cache/CacheDirectory.java	Wed Apr 13 12:18:38 2011 -0400
+++ b/netx/net/sourceforge/jnlp/cache/CacheDirectory.java	Wed Apr 13 17:23:49 2011 -0400
@@ -41,7 +41,11 @@
 
 import net.sourceforge.jnlp.util.FileUtils;
 
-public class CacheDirectory {
+public final class CacheDirectory {
+
+    /* Don't allow instantiation of this class */
+    private CacheDirectory(){}
+
     /**
      * Get the structure of directory for keeping track of the protocol and
      * domain.



More information about the distro-pkg-dev mailing list