Skip to content

Commit c9af1d7

Browse files
committed
Fixing some minor warnings
1 parent 6071ce2 commit c9af1d7

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

biojava-core/src/main/java/org/biojava/nbio/core/sequence/loader/GenbankProxySequenceReader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ public String getHeader() {
170170
public GenericGenbankHeaderParser<AbstractSequence<C>, C> getHeaderParser() {
171171
return headerParser;
172172
}
173-
public HashMap<String, ArrayList<AbstractFeature>> getFeatures() {
173+
@Override
174+
public HashMap<String, ArrayList<AbstractFeature>> getFeatures() {
174175
return features;
175176
}
176177

biojava-core/src/main/java/org/biojava/nbio/core/util/InputStreamProvider.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ else if ( fileName.endsWith(".gz")) {
184184

185185
else if ( fileName.endsWith(".zip")){
186186

187-
@SuppressWarnings("resource")
188-
ZipFile zipfile = new ZipFile(f);
187+
ZipFile zipfile = new ZipFile(f);
189188

190189
// stream to first entry is returned ...
191190
ZipEntry entry;
@@ -201,8 +200,7 @@ else if ( fileName.endsWith(".zip")){
201200

202201
else if ( fileName.endsWith(".jar")) {
203202

204-
@SuppressWarnings("resource")
205-
JarFile jarFile = new JarFile(f);
203+
JarFile jarFile = new JarFile(f);
206204

207205
// stream to first entry is returned
208206
JarEntry entry;

biojava-core/src/test/java/org/biojava/nbio/core/search/io/HspTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.junit.BeforeClass;
3131
import org.junit.Test;
3232
import static org.junit.Assert.*;
33-
import org.junit.Ignore;
3433

3534
/**
3635
* @author Paolo Pavan

biojava-core/src/test/java/org/biojava/nbio/core/sequence/io/FastaReaderTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
import java.util.LinkedHashMap;
3737
import java.util.logging.Level;
3838

39-
import static org.junit.Assert.assertEquals;
40-
import static org.junit.Assert.assertNotNull;
41-
4239
/**
4340
*
4441
* @author Scooter Willis <willishf at gmail dot com>
@@ -58,10 +55,12 @@ public static void setUpClass() throws Exception {
5855
public static void tearDownClass() throws Exception {
5956
}
6057

58+
@Override
6159
@Before
6260
public void setUp() {
6361
}
6462

63+
@Override
6564
@After
6665
public void tearDown() {
6766
}

biojava-core/src/test/java/org/biojava/nbio/core/sequence/io/GenbankCookbookTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
import org.slf4j.Logger;
3737
import org.slf4j.LoggerFactory;
3838

39-
import java.io.File;
40-
import java.io.FileInputStream;
4139
import java.util.LinkedHashMap;
4240

4341
/**

biojava-core/src/test/java/org/biojava/nbio/core/sequence/loader/GenbankProxySequenceReaderTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import java.util.Collection;
4040
import org.biojava.nbio.core.sequence.features.AbstractFeature;
4141
import org.biojava.nbio.core.sequence.features.Qualifier;
42-
import org.junit.Ignore;
4342

4443
/**
4544
* Testing example for issue #834

0 commit comments

Comments
 (0)