Skip to content

Commit c1a114f

Browse files
committed
simplify generics in RNASequence
1 parent 91f4e4c commit c1a114f

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

‎biojava-core/src/main/java/org/biojava/nbio/core/sequence/RNASequence.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public RNASequence(String seqString, CompoundSet<NucleotideCompound> compoundSet
7272
}
7373

7474
/**
75-
* Create a RNA sequence from a proxy reader and user defined RNA compound set
75+
* Create a RNA sequence from a proxy reader and user-defined RNA compound set
7676
* @param proxyLoader
7777
* @param compoundSet
7878
*/
@@ -86,7 +86,7 @@ public RNASequence(ProxySequenceReader<NucleotideCompound> proxyLoader,
8686
* @return
8787
*/
8888
public SequenceView<NucleotideCompound> getReverseComplement() {
89-
return new ComplementSequenceView<NucleotideCompound>(getInverse());
89+
return new ComplementSequenceView<>(getInverse());
9090
}
9191

9292
/**
@@ -97,15 +97,15 @@ public SequenceView<NucleotideCompound> getReverseComplement() {
9797
*/
9898
@Override
9999
public SequenceView<NucleotideCompound> getInverse() {
100-
return new ReversedSequenceView<NucleotideCompound>(this);
100+
return new ReversedSequenceView<>(this);
101101
}
102102

103103
/**
104104
* Get the complement view of the RNA sequence
105105
* @return
106106
*/
107107
public SequenceView<NucleotideCompound> getComplement() {
108-
return new ComplementSequenceView<NucleotideCompound>(this);
108+
return new ComplementSequenceView<>(this);
109109
}
110110

111111
/**
@@ -117,7 +117,7 @@ public ProteinSequence getProteinSequence() {
117117
}
118118

119119
/**
120-
* Get the ProteinSequene from the RNA sequence with user defined
120+
* Get the ProteinSequence from the RNA sequence with user-defined
121121
* transcription engine
122122
*
123123
* @param engine
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package org.biojava.nbio.core.sequence;
2+
3+
import static org.junit.jupiter.api.Assertions.*;
4+
5+
class RNASequenceTest {
6+
7+
}

‎biojava-core/src/test/java/org/biojava/nbio/core/sequence/TaxonomyIDTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import static org.junit.jupiter.api.Assertions.*;
66

77
class TaxonomyIDTest {
8-
8+
99
@Test
1010
void createTaxonomyID(){
1111
TaxonomyID tId = new TaxonomyID("abc1", DataSource.GENBANK);

0 commit comments

Comments
 (0)