Skip to content

Commit 8aec708

Browse files
committed
formatting/ self review
1 parent 362a102 commit 8aec708

4 files changed

Lines changed: 10 additions & 36 deletions

File tree

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

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -514,26 +514,5 @@ public static long uncompress(InputStream in, OutputStream out)
514514

515515
private static final boolean debugTiming = false;
516516

517-
/**
518-
* Reads a file, uncompresses it, and sends the result to stdout.
519-
* Also writes trivial statistics to stderr.
520-
* @param args An array with one String element, the name of the file to read.
521-
* @throws IOException for any failure
522-
*/
523-
public static void main(String[] args) throws Exception {
524-
if (args.length != 1) {
525-
logger.info("Usage: UncompressInputStream <file>");
526-
System.exit(1);
527-
}
528-
long beg = System.currentTimeMillis();
529-
530-
long tot;
531-
try (InputStream in = new FileInputStream(args[0])) {
532-
tot = uncompress(in, System.out);
533-
}
534-
535-
long end = System.currentTimeMillis();
536-
logger.info("Decompressed {} bytes", tot);
537-
logger.info("Time: {} seconds", (end - beg) / 1000);
538-
}
517+
539518
}

biojava-core/src/test/java/org/biojava/nbio/core/sequence/ProteinSequenceTest.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
import org.junit.jupiter.api.Test;
1010

1111
public class ProteinSequenceTest {
12-
12+
1313
@Test
14-
void basicTest() throws Exception {
15-
ProteinSequence proteinSequence = new ProteinSequence("ARNDCEQGHILKMFPSTWYVBZJX");
16-
assertNotNull( proteinSequence.toString());
14+
void basicTest() throws Exception {
15+
ProteinSequence proteinSequence = new ProteinSequence("ARNDCEQGHILKMFPSTWYVBZJX");
16+
assertNotNull(proteinSequence.toString());
1717
assertEquals(24, proteinSequence.getLength());
1818

19-
StringProxySequenceReader<AminoAcidCompound> sequenceStringProxyLoader = new StringProxySequenceReader<AminoAcidCompound>("XRNDCEQGHILKMFPSTWYVBZJA", AminoAcidCompoundSet.getAminoAcidCompoundSet());
20-
ProteinSequence proteinSequenceFromProxy = new ProteinSequence(sequenceStringProxyLoader);
21-
assertNotNull( proteinSequenceFromProxy.toString());
19+
StringProxySequenceReader<AminoAcidCompound> sequenceStringProxyLoader = new StringProxySequenceReader<AminoAcidCompound>(
20+
"XRNDCEQGHILKMFPSTWYVBZJA", AminoAcidCompoundSet.getAminoAcidCompoundSet());
21+
ProteinSequence proteinSequenceFromProxy = new ProteinSequence(sequenceStringProxyLoader);
22+
assertNotNull(proteinSequenceFromProxy.toString());
2223
assertEquals(24, proteinSequence.getLength());
23-
}
24+
}
2425
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ void booleanConversion() throws CompoundNotFoundException {
7171
for (int i = 0; i < seq.getLength(); i++) {
7272
assertEquals(expected[i], userCollection.next());
7373
}
74-
7574
}
7675

7776
}

biojava-core/src/test/java/org/biojava/nbio/core/sequence/location/InsdcParserTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ public class InsdcParserTest {
4343

4444
private Logger log = LoggerFactory.getLogger(getClass());
4545

46-
static Collection<String[]> data() {
47-
return Arrays.asList(new String[][] {
48-
49-
});
50-
}
5146

5247
/**
5348
* Test for issue #254

0 commit comments

Comments
 (0)