From aa7280580db6b414be9dbcf084ade7cda405eb3c Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 24 Feb 2006 11:40:07 +0000 Subject: [PATCH] Features now array --- src/jalview/analysis/SeqsetUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jalview/analysis/SeqsetUtils.java b/src/jalview/analysis/SeqsetUtils.java index 40869c2..61f10b5 100755 --- a/src/jalview/analysis/SeqsetUtils.java +++ b/src/jalview/analysis/SeqsetUtils.java @@ -49,7 +49,7 @@ public class SeqsetUtils sqinfo.put("Name", seq.getName()); sqinfo.put("Start", new Integer(seq.getStart())); sqinfo.put("End", new Integer(seq.getEnd())); - sqinfo.put("SeqFeatures", (seq.getSequenceFeatures() !=null) ? seq.getSequenceFeatures() : new Vector()); + sqinfo.put("SeqFeatures", (seq.getSequenceFeatures() !=null) ? seq.getSequenceFeatures() : null); sqinfo.put("PdbId", (seq.getPDBId() != null) ? seq.getPDBId() : new Vector()); sqinfo.put("datasetSequence", (seq.getDatasetSequence() !=null) ? seq.getDatasetSequence() : new Sequence("THISISAPLACEHOLDER","")); @@ -71,7 +71,7 @@ public class SeqsetUtils String oldname = (String) sqinfo.get("Name"); Integer start = (Integer) sqinfo.get("Start"); Integer end = (Integer) sqinfo.get("End"); - java.util.Vector sfeatures = (java.util.Vector) sqinfo.get( + SequenceFeature [] sfeatures = (SequenceFeature[]) sqinfo.get( "SeqFeatures"); Vector pdbid = (Vector) sqinfo.get("PdbId"); Sequence seqds = (Sequence) sqinfo.get("datasetSequence"); @@ -94,7 +94,7 @@ public class SeqsetUtils sq.setEnd(end.intValue()); } - if ((sfeatures != null) && (sfeatures.size()>0)) + if ((sfeatures != null) && (sfeatures.length>0)) { sq.setSequenceFeatures(sfeatures); } -- 1.7.10.2