changeset 209:1e661bc821f8

Make CacheDirectory final and not instantiable.
author Andrew Su <asu@redhat.com>
date Wed, 13 Apr 2011 17:23:49 -0400
parents c84f2e5b039f
children 72de6393baca
files ChangeLog netx/net/sourceforge/jnlp/cache/CacheDirectory.java
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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@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@redhat.com>
 
 	* plugin/icedteanp/java/sun/applet/PluginAppletViewer.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.