Skip to content

Commit b0ac102

Browse files
committed
again, substituted implementation with interface
1 parent dd585c9 commit b0ac102

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public class GenbankSequenceParser<S extends AbstractSequence<C>, C extends Comp
6262
private String header;
6363
private String accession;
6464
private boolean isCircularSequence;
65-
private long sequenceLength;
66-
public LinkedHashMap<String, ArrayList<DBReferenceInfo>> mapDB;
65+
public Map<String, ArrayList<DBReferenceInfo>> mapDB;
6766
/**
6867
* this data structure collects list of features extracted from the
6968
* FEATURE_TAG section They are organized by list of the same type (i.e.
@@ -304,7 +303,7 @@ private void parseLocusTag(List<String[]> section) {
304303
if (m.matches()) {
305304
headerParser.setName(m.group(1));
306305
headerParser.setAccession(m.group(1)); // default if no accession found
307-
sequenceLength = Long.valueOf(m.group(2));
306+
long sequenceLength = Long.valueOf(m.group(2));
308307
String lengthUnits = m.group(3);
309308
String type = m.group(6);
310309

0 commit comments

Comments
 (0)