Don't initialise a char in findIndex
authoramwaterhouse <Andrew Waterhouse>
Wed, 16 Nov 2005 16:42:45 +0000 (16:42 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 16 Nov 2005 16:42:45 +0000 (16:42 +0000)
src/jalview/datamodel/Sequence.java

index a7fcb33..6988615 100755 (executable)
@@ -422,9 +422,7 @@ public class Sequence implements SequenceI
 \r
         while ((i < sequence.length()) && (j <= end) && (j <= pos))\r
         {\r
-            char c = sequence.charAt(i);\r
-\r
-            if (!jalview.util.Comparison.isGap((c)))\r
+            if (!jalview.util.Comparison.isGap(sequence.charAt(i)))\r
             {\r
                 j++;\r
             }\r