JAL-3253 jalview.bin.Instance streamlining
[jalview.git] / src / jalview / bin / Cache.java
index 642917f..fd382b3 100755 (executable)
@@ -210,6 +210,11 @@ import org.apache.log4j.SimpleLayout;
 public class Cache
 {
 
+  private Cache()
+  {
+    // private singleton
+  }
+
   /**
    * In Java, this will be a static field instance, which will be
    * application-specific; in JavaScript it will be an applet-specific instance
@@ -217,7 +222,7 @@ public class Cache
    * 
    * @return
    */
-  public static Cache getInstance()
+  private static Cache getInstance()
   {
     Instance i = Instance.getInstance();
     return (i.cache == null ? i.cache = new Cache() : i.cache);
@@ -278,11 +283,6 @@ public class Cache
    */
   public static Logger log;
 
-  private Cache()
-  {
-    // singleton
-  }
-
   /** Jalview Properties */
   // BH 2019.05.08 was static
   @SuppressWarnings("serial")