From ccc0d91abe38690088a6050faba8ef66cde1f271 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 30 Jun 2008 09:50:27 +0000 Subject: [PATCH] java 1.1 compatibility --- src/jalview/analysis/SeqsetUtils.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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