Skip to content

Commit 14def30

Browse files
jamesmorrisjamesmorris
authored andcommitted
more fixes to formatting
1 parent d872145 commit 14def30

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
import org.biojava.nbio.core.sequence.DataSource;
3737

38-
public class GenericGenbankHeaderParser<S extends AbstractSequence<C>, C extends Compound> implements SequenceHeaderParserInterface<S, C> {
38+
public class GenericGenbankHeaderParser<S extends AbstractSequence<C>, C extends Compound> implements SequenceHeaderParserInterface<S,C> {
3939

4040
@SuppressWarnings("unused")
4141

@@ -162,49 +162,49 @@ public void setVersion(int version) throws ParserException {
162162
}
163163

164164
/**
165-
* {@inheritDoc}
165+
* {@inheritDoc}
166166
* The last accession passed to this routine will always be the one used.
167167
*/
168168
public void setAccession(String accession) throws ParserException {
169-
if (accession == null) throw new ParserException("Accession cannot be null");
169+
if (accession==null) throw new ParserException("Accession cannot be null");
170170
this.accession = accession;
171171
}
172172

173173
/**
174174
* {@inheritDoc}
175175
*/
176176
public void setDescription(String description) throws ParserException {
177-
if (this.description != null) throw new ParserException("Current BioEntry already has a description");
177+
if (this.description!=null) throw new ParserException("Current BioEntry already has a description");
178178
this.description = description;
179179
}
180180

181181
/**
182182
* {@inheritDoc}
183183
*/
184184
public void setIdentifier(String identifier) throws ParserException {
185-
if (identifier == null) throw new ParserException("Identifier cannot be null");
186-
if (this.identifier != null) throw new ParserException("Current BioEntry already has a identifier");
185+
if (identifier==null) throw new ParserException("Identifier cannot be null");
186+
if (this.identifier!=null) throw new ParserException("Current BioEntry already has a identifier");
187187
this.identifier = identifier;
188188
}
189189

190190
/**
191191
* {@inheritDoc}
192192
*/
193193
public void setName(String name) throws ParserException {
194-
if (name == null) throw new ParserException("Name cannot be null");
195-
if (this.name != null) throw new ParserException("Current BioEntry already has a name");
194+
if (name==null) throw new ParserException("Name cannot be null");
195+
if (this.name!=null) throw new ParserException("Current BioEntry already has a name");
196196
this.name = name;
197197
}
198198

199199
/**
200200
* {@inheritDoc}
201201
*/
202202
public void setComment(String comment) throws ParserException {
203-
if (comment == null) throw new ParserException("Comment cannot be null");
203+
if (comment==null) throw new ParserException("Comment cannot be null");
204204
this.comments.add(comment);
205205
}
206206

207-
public void addReference(AbstractReference abstractReference) {
207+
public void addReference(AbstractReference abstractReference){
208208
this.references.add(abstractReference);
209209
}
210210
}

0 commit comments

Comments
 (0)