JAL-1517 source formatting
[jalview.git] / src / jalview / schemes / RNAHelicesColour.java
index 46fa626..152ad9a 100644 (file)
@@ -67,6 +67,7 @@ public class RNAHelicesColour extends ResidueColourScheme
     this.annotation = annotation;
     refresh();
   }
+
   public RNAHelicesColour(AnnotatedCollectionI alignment)
   {
     super(ResidueProperties.nucleotideIndex);
@@ -79,28 +80,31 @@ public class RNAHelicesColour extends ResidueColourScheme
   {
 
     // This loop will find the first rna structure annotation by which to colour
-    //  the sequences.
+    // the sequences.
     AlignmentAnnotation[] annotations = alignment.getAlignmentAnnotation();
-    for (int i = 0; i < annotations.length; i++) {
-        
-        // is this a sensible way of determining type of annotation?
-        if (annotations[i].getRNAStruc() != null) { 
-                annotation = annotations[i];
-                break;
-        }
+    for (int i = 0; i < annotations.length; i++)
+    {
+
+      // is this a sensible way of determining type of annotation?
+      if (annotations[i].getRNAStruc() != null)
+      {
+        annotation = annotations[i];
+        break;
+      }
     }
 
     refresh();
 
   }
+
   private long lastrefresh = -1;
 
   public void refresh()
   {
-    
-    if (annotation!=null && ((annotation._rnasecstr == null
-               || lastrefresh != annotation._rnasecstr.hashCode())
-            && annotation.isValidStruc()))
+
+    if (annotation != null
+            && ((annotation._rnasecstr == null || lastrefresh != annotation._rnasecstr
+                    .hashCode()) && annotation.isValidStruc()))
     {
       annotation.getRNAStruc();
       lastrefresh = annotation._rnasecstr.hashCode();