JAL-3210 Improvements to eclipse detection. New src tree and SwingJS updated from...
[jalview.git] / src / jalview / commands / ChangeCaseCommand.java
index 7f7142f..f0ea2f6 100644 (file)
@@ -29,17 +29,17 @@ public class ChangeCaseCommand implements CommandI
 {
   String description;
 
-  public static int TO_LOWER = 0;
+  public final static int TO_LOWER = 0;
 
-  public static int TO_UPPER = 1;
+  public final static int TO_UPPER = 1;
 
-  public static int TOGGLE_CASE = 2;
+  public final static int TOGGLE_CASE = 2;
 
-  int caseChange = -1;
+  private int caseChange;
 
-  SequenceI[] seqs;
+  private SequenceI[] seqs;
 
-  List<int[]> regions;
+  private List<int[]> regions;
 
   public ChangeCaseCommand(String description, SequenceI[] seqs,
           List<int[]> regions, int caseChange)
@@ -51,21 +51,25 @@ public class ChangeCaseCommand implements CommandI
     doCommand(null);
   }
 
+  @Override
   public String getDescription()
   {
     return description;
   }
 
+  @Override
   public int getSize()
   {
     return 1;
   }
 
+  @Override
   public void doCommand(AlignmentI[] views)
   {
     changeCase(true);
   }
 
+  @Override
   public void undoCommand(AlignmentI[] views)
   {
     changeCase(false);