JAL-3253 jalview.bin.Instance streamlining
[jalview.git] / src / jalview / analysis / AlignmentSorter.java
index 459d09d..e9eee16 100755 (executable)
@@ -57,8 +57,17 @@ public class AlignmentSorter
 
   private AlignmentSorter()
   {
-    // singleton
+    // private singleton
   }
+
+  private static AlignmentSorter getInstance()
+  {
+    Instance j = Instance.getInstance();
+    return (j.alignmentSorter == null
+            ? j.alignmentSorter = new AlignmentSorter()
+            : j.alignmentSorter);
+  }
+
   /**
    * types of feature ordering: Sort by score : average score - or total score -
    * over all features in region Sort by feature label text: (or if null -
@@ -71,14 +80,6 @@ public class AlignmentSorter
 
   public static final String FEATURE_DENSITY = "density";
 
-  public static AlignmentSorter getInstance()
-  {
-    Instance j = Instance.getInstance();
-    return (j.alignmentSorter == null
-            ? j.alignmentSorter = new AlignmentSorter()
-            : j.alignmentSorter);
-  }
-
   /*
    * todo: refactor searches to follow a basic pattern: (search property, last
    * search state, current sort direction)