|
35 | 35 |
|
36 | 36 | import org.biojava.nbio.core.sequence.DataSource; |
37 | 37 |
|
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> { |
39 | 39 |
|
40 | 40 | @SuppressWarnings("unused") |
41 | 41 |
|
@@ -162,49 +162,49 @@ public void setVersion(int version) throws ParserException { |
162 | 162 | } |
163 | 163 |
|
164 | 164 | /** |
165 | | - * {@inheritDoc} |
| 165 | + * {@inheritDoc} |
166 | 166 | * The last accession passed to this routine will always be the one used. |
167 | 167 | */ |
168 | 168 | 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"); |
170 | 170 | this.accession = accession; |
171 | 171 | } |
172 | 172 |
|
173 | 173 | /** |
174 | 174 | * {@inheritDoc} |
175 | 175 | */ |
176 | 176 | 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"); |
178 | 178 | this.description = description; |
179 | 179 | } |
180 | 180 |
|
181 | 181 | /** |
182 | 182 | * {@inheritDoc} |
183 | 183 | */ |
184 | 184 | 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"); |
187 | 187 | this.identifier = identifier; |
188 | 188 | } |
189 | 189 |
|
190 | 190 | /** |
191 | 191 | * {@inheritDoc} |
192 | 192 | */ |
193 | 193 | 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"); |
196 | 196 | this.name = name; |
197 | 197 | } |
198 | 198 |
|
199 | 199 | /** |
200 | 200 | * {@inheritDoc} |
201 | 201 | */ |
202 | 202 | 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"); |
204 | 204 | this.comments.add(comment); |
205 | 205 | } |
206 | 206 |
|
207 | | - public void addReference(AbstractReference abstractReference) { |
| 207 | + public void addReference(AbstractReference abstractReference){ |
208 | 208 | this.references.add(abstractReference); |
209 | 209 | } |
210 | 210 | } |
0 commit comments