Skip to content

Commit b6fe385

Browse files
committed
added type checking
1 parent 8040e39 commit b6fe385

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

biojava-core/src/main/java/org/biojava/nbio/core/sequence/io/GenbankSequenceParser.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737
import org.biojava.nbio.core.sequence.compound.AminoAcidCompoundSet;
3838
import org.biojava.nbio.core.sequence.compound.DNACompoundSet;
3939
import org.biojava.nbio.core.sequence.compound.RNACompoundSet;
40-
import org.biojava.nbio.core.sequence.features.*;
40+
import org.biojava.nbio.core.sequence.features.AbstractFeature;
41+
import org.biojava.nbio.core.sequence.features.DBReferenceInfo;
42+
import org.biojava.nbio.core.sequence.features.Qualifier;
43+
import org.biojava.nbio.core.sequence.features.TextFeature;
4144
import org.biojava.nbio.core.sequence.io.template.SequenceParserInterface;
4245
import org.biojava.nbio.core.sequence.location.InsdcParser;
4346
import org.biojava.nbio.core.sequence.location.template.AbstractLocation;
@@ -447,7 +450,7 @@ public Map<String, List<AbstractFeature>> getFeatures() {
447450

448451
public void parseFeatures(AbstractSequence<C> sequence) {
449452
for (String k: featureCollection.keySet())
450-
for (AbstractFeature f: featureCollection.get(k))
453+
for (AbstractFeature<AbstractSequence<C>, C> f: featureCollection.get(k))
451454
sequence.addFeature(f);
452455
}
453456

0 commit comments

Comments
 (0)