JAL-1517 source formatting
[jalview.git] / src / jalview / ws / jws2 / RNAalifoldClient.java
index 126266b..5d0df8a 100644 (file)
@@ -44,8 +44,9 @@ import compbio.metadata.Argument;
 
 /**
  * Client for the JABA RNA Alifold Service
+ * 
  * @author daluke - Daniel Barton
- *
+ * 
  */
 
 public class RNAalifoldClient extends JabawsAlignCalcWorker implements
@@ -65,23 +66,24 @@ public class RNAalifoldClient extends JabawsAlignCalcWorker implements
   {
     super(sh, alignFrame, preset, paramset);
 
-    //if (arguments == null)
-    //  arguments = new ArrayList<Argument>();
+    // if (arguments == null)
+    // arguments = new ArrayList<Argument>();
 
     af = alignFrame;
     methodName = sh.serviceType;
-    alignedSeqs=true;
-    submitGaps=true;
+    alignedSeqs = true;
+    submitGaps = true;
     nucleotidesAllowed = true;
     proteinAllowed = false;
     initViewportParams();
   }
-  
+
   public String getCalcId()
   {
     return CALC_ID;
   }
-  private static String CALC_ID="jalview.ws.jws2.RNAalifoldClient";
+
+  private static String CALC_ID = "jalview.ws.jws2.RNAalifoldClient";
 
   public static AlignAnalysisUIText getAlignAnalysisUITest()
   {
@@ -218,7 +220,8 @@ public class RNAalifoldClient extends JabawsAlignCalcWorker implements
   private AlignmentAnnotation constructAnnotationFromScoreHolder(
           AlignmentAnnotation annotation, String struct, TreeSet<Score> data)
   {
-    Annotation[] anns = new Annotation[gapMap!= null ? gapMap.length+1 : struct.length()];
+    Annotation[] anns = new Annotation[gapMap != null ? gapMap.length + 1
+            : struct.length()];
 
     if (data != null
             && data.size() > 1
@@ -236,10 +239,10 @@ public class RNAalifoldClient extends JabawsAlignCalcWorker implements
         basePairs.put(score.getRanges().first(), new Float(score
                 .getScores().get(0)));
       }
-      
-      for (int i = 0,ri=0,iEnd=struct.length();i<iEnd; i++,ri++)
+
+      for (int i = 0, ri = 0, iEnd = struct.length(); i < iEnd; i++, ri++)
       {
-        if (gapMap!=null)
+        if (gapMap != null)
         {
           // skip any gapped columns in the input data
           while (!gapMap[ri])
@@ -276,16 +279,16 @@ public class RNAalifoldClient extends JabawsAlignCalcWorker implements
     }
     else if (data == null || data.size() == 1)
     {
-      for (int i = 0,ri=0,iEnd=struct.length();i<iEnd; i++,ri++)
+      for (int i = 0, ri = 0, iEnd = struct.length(); i < iEnd; i++, ri++)
       {
-        if (gapMap!=null)
+        if (gapMap != null)
         {
           // skip any gapped columns in the input data
-          while (!gapMap[ri] && ri<gapMap.length)
+          while (!gapMap[ri] && ri < gapMap.length)
           {
             ri++;
           }
-          if (ri==gapMap.length)
+          if (ri == gapMap.length)
           {
             break;
           }