Skip to content

Commit 758ceb6

Browse files
authored
Merge pull request #1065 from jlerbsc/master
Second fix for sonar rule 's1130' throws declarations should not be superfluous
2 parents 4cb89f8 + 6f8b793 commit 758ceb6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

biojava-protein-disorder/src/main/java/org/biojava/nbio/ronn/ORonn.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public final class ORonn implements Callable<ORonn> {
8181

8282

8383
ORonn(final FastaSequence sequence, final ModelLoader mloader,
84-
final InputParameters params) throws NumberFormatException,
85-
IOException {
84+
final InputParameters params) throws
85+
IOException {
8686
this.sequence = sequence;
8787
this.mloader = mloader;
8888
out = params.getOutputWriter();
@@ -93,8 +93,8 @@ public final class ORonn implements Callable<ORonn> {
9393
timer = new Timer(TimeUnit.MILLISECONDS);
9494
}
9595
//This constructor is for API calls where the caller collects the results directly
96-
ORonn(final FastaSequence sequence, final ModelLoader mloader) throws NumberFormatException,
97-
IOException {
96+
ORonn(final FastaSequence sequence, final ModelLoader mloader) throws
97+
IOException {
9898
this.sequence = sequence;
9999
this.mloader = mloader;
100100
out = new PrintWriter(new NullOutputStream());

biojava-protein-disorder/src/main/java/org/biojava/nbio/ronn/ORonnModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private final float[] align(final int sResidue, final int dIndex) {
169169
}
170170

171171
public ORonnModel(final String sequence, final Model model,
172-
final float disorder) throws NumberFormatException {
172+
final float disorder) {
173173
this.disorder_weight = disorder;
174174
this.model = model;
175175
query = sequence.toCharArray();

biojava-structure/src/main/java/org/biojava/nbio/structure/align/util/SynchronizedOutFile.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class SynchronizedOutFile {
4343
* @throws FileNotFoundException
4444
* @throws IOException
4545
*/
46-
public SynchronizedOutFile(File f, boolean gzipCompress) throws FileNotFoundException, IOException{
46+
public SynchronizedOutFile(File f, boolean gzipCompress) throws IOException{
4747
if ( f.isDirectory())
4848
throw new FileNotFoundException("please provide a file and not a directory");
4949

@@ -62,7 +62,7 @@ public SynchronizedOutFile(File f, boolean gzipCompress) throws FileNotFoundExce
6262
*
6363
* @param f
6464
*/
65-
public SynchronizedOutFile(File f) throws FileNotFoundException, IOException{
65+
public SynchronizedOutFile(File f) throws IOException{
6666

6767
this(f,false);
6868

0 commit comments

Comments
 (0)