From: amwaterhouse Date: Wed, 16 Nov 2005 16:42:45 +0000 (+0000) Subject: Don't initialise a char in findIndex X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=852fbab4c8d08e5729afbd9ae90d3581e254a370;p=jalview.git Don't initialise a char in findIndex --- diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index a7fcb33..6988615 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -422,9 +422,7 @@ public class Sequence implements SequenceI while ((i < sequence.length()) && (j <= end) && (j <= pos)) { - char c = sequence.charAt(i); - - if (!jalview.util.Comparison.isGap((c))) + if (!jalview.util.Comparison.isGap(sequence.charAt(i))) { j++; }