From: jprocter Date: Thu, 9 Dec 2010 17:34:15 +0000 (+0000) Subject: java 1.1 patches X-Git-Tag: Release_2_7~365 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ea1129578da8007d62c540724d0856165181f8ec;p=jalview.git java 1.1 patches --- diff --git a/src/jalview/datamodel/AlignmentView.java b/src/jalview/datamodel/AlignmentView.java index 325fc45..e0d8d44 100644 --- a/src/jalview/datamodel/AlignmentView.java +++ b/src/jalview/datamodel/AlignmentView.java @@ -134,7 +134,7 @@ public class AlignmentView // visible and selected region int ssel = selection.getStartRes(), esel = selection.getEndRes(); Vector isg = new Vector(); - Enumeration en = grps.elements(); + Enumeration en = grps.elements(); while (en.hasMoreElements()) { sg = (SequenceGroup) en.nextElement(); @@ -332,7 +332,7 @@ public class AlignmentView * prune any groups to the visible coordinates of the alignment. */ { - int nvg = scGroups != null ? scGroups.size() : 0; + int nvg = (scGroups != null) ? scGroups.size() : 0; if (nvg > 0) { SequenceGroup[] nsg = new SequenceGroup[nvg];