From 852fbab4c8d08e5729afbd9ae90d3581e254a370 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 16 Nov 2005 16:42:45 +0000 Subject: [PATCH] Don't initialise a char in findIndex --- src/jalview/datamodel/Sequence.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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++; } -- 1.7.10.2