Skip to content

Commit 97332ca

Browse files
committed
This is a bug
1 parent e763320 commit 97332ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private String parse(BufferedReader bufferedReader) {
145145
sectionKey = section.get(0)[0];
146146
if (sectionKey == null) {
147147
//if we reach the end of the file, section contains empty strings
148-
if(section.get(0)[1]==null || section.get(0)[1]=="" ||
148+
if(section.get(0)[1]==null || section.get(0)[1].equals("") ||
149149
section.get(0)[1].length()==0) {
150150
throw new ParserException(Messages.ENDOFFILE);
151151
}

0 commit comments

Comments
 (0)