Merge branch 'develop' into update_212_Dec_merge_with_21125_chamges
[jalview.git] / test / jalview / ws / PDBSequenceFetcherTest.java
index 9992137..3f9b9d8 100644 (file)
@@ -149,18 +149,15 @@ public class PDBSequenceFetcherTest
         // chains in structure have a mapping to data in the structure
         List<SequenceFeature> prev = null;
         int lastp = -1;
-        for (int col = 1; col <= sq.getLength(); col++)
+        for (int col = 1, ns = sq.getLength(); col <= ns; col++)
         {
           List<SequenceFeature> sf = sq.findFeatures(col, col, "RESNUM");
           if (sf.size() != 1)
           {
-            errors.append(
-                    str.id + ": " +
-                            "Expected one feature at column (position): "
-                            + (col - 1)
-                            + " (" + sq.findPosition(col - 1) + ")"
-                            + ": saw "
-                            + sf.size());
+            errors.append(str.id + ": "
+                    + "Expected one feature at column (position): "
+                    + (col - 1) + " (" + sq.findPosition(col - 1) + ")"
+                    + ": saw " + sf.size());
             errors.append("\n");
             if (prev != null)
             {