{
for (int i = 0; i < sfarray.length; i++)
{
- sfeat.add(sfarray[i]);
+ sfeat.addElement(sfarray[i]);
}
}
sqinfo.put("SeqFeatures", sfeat);
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<isize;is++)
+ {
+ sfarray[is] = (SequenceFeature) sfeatures.elementAt(is);
+ }
sq.setSequenceFeatures(sfarray);
}
if (description != null)
Vector unmatched = new Vector();
for (int i = 0, j = sequences.length; i < j; i++)
{
- unmatched.add(sequences[i]);
+ unmatched.addElement(sequences[i]);
}
while (keys.hasMoreElements())
{
if ( (msq = matcher.findIdMatch( (String) key)) != null)
{
Hashtable sqinfo = (Hashtable) map.get(key);
- unmatched.remove(msq);
+ unmatched.removeElement(msq);
SeqCharacterUnhash(msq, sqinfo);
}
else