From: hansonr Date: Thu, 18 Apr 2019 18:15:55 +0000 (-0500) Subject: minor code clean up X-Git-Tag: Release_2_11_4_0~45^2~18^2~138 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=97761a98a97b49dcdf65e574aeff21f62f8a70b7;p=jalview.git minor code clean up --- diff --git a/src/jalview/datamodel/Alignment.java b/src/jalview/datamodel/Alignment.java index 02c4239..1956df7 100755 --- a/src/jalview/datamodel/Alignment.java +++ b/src/jalview/datamodel/Alignment.java @@ -1190,7 +1190,8 @@ public class Alignment implements AlignmentI int maxLength = -1; SequenceI current; - for (int i = 0; i < sequences.size(); i++) + int nseq = sequences.size(); + for (int i = 0; i < nseq; i++) { current = getSequenceAt(i); for (int j = current.getLength(); j > maxLength; j--) @@ -1207,7 +1208,7 @@ public class Alignment implements AlignmentI maxLength++; int cLength; - for (int i = 0; i < sequences.size(); i++) + for (int i = 0; i < nseq; i++) { current = getSequenceAt(i); cLength = current.getLength();