From: jprocter Date: Mon, 30 Jun 2008 09:50:27 +0000 (+0000) Subject: java 1.1 compatibility X-Git-Tag: Release_2_4~89 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ccc0d91abe38690088a6050faba8ef66cde1f271;p=jalview.git java 1.1 compatibility --- diff --git a/src/jalview/analysis/SeqsetUtils.java b/src/jalview/analysis/SeqsetUtils.java index 3b443ab..0aa2bd5 100755 --- a/src/jalview/analysis/SeqsetUtils.java +++ b/src/jalview/analysis/SeqsetUtils.java @@ -59,7 +59,7 @@ public class SeqsetUtils { for (int i = 0; i < sfarray.length; i++) { - sfeat.add(sfarray[i]); + sfeat.addElement(sfarray[i]); } } sqinfo.put("SeqFeatures", sfeat); @@ -114,7 +114,11 @@ public class SeqsetUtils if ( (sfeatures != null) && (sfeatures.size() > 0)) { - SequenceFeature[] sfarray = (SequenceFeature[]) sfeatures.toArray(); + SequenceFeature[] sfarray = new SequenceFeature[sfeatures.size()]; + for (int is=0,isize=sfeatures.size();is