Skip to content

Commit

Permalink
Merge pull request #1065 from jlerbsc/master
Browse files Browse the repository at this point in the history
Second fix for sonar rule 's1130' throws declarations should not be superfluous
  • Loading branch information
josemduarte committed Jun 26, 2023
2 parents 4cb89f8 + 6f8b793 commit 758ceb6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Expand Up @@ -81,8 +81,8 @@ public final class ORonn implements Callable<ORonn> {


ORonn(final FastaSequence sequence, final ModelLoader mloader,
final InputParameters params) throws NumberFormatException,
IOException {
final InputParameters params) throws
IOException {
this.sequence = sequence;
this.mloader = mloader;
out = params.getOutputWriter();
Expand All @@ -93,8 +93,8 @@ public final class ORonn implements Callable<ORonn> {
timer = new Timer(TimeUnit.MILLISECONDS);
}
//This constructor is for API calls where the caller collects the results directly
ORonn(final FastaSequence sequence, final ModelLoader mloader) throws NumberFormatException,
IOException {
ORonn(final FastaSequence sequence, final ModelLoader mloader) throws
IOException {
this.sequence = sequence;
this.mloader = mloader;
out = new PrintWriter(new NullOutputStream());
Expand Down
Expand Up @@ -169,7 +169,7 @@ private final float[] align(final int sResidue, final int dIndex) {
}

public ORonnModel(final String sequence, final Model model,
final float disorder) throws NumberFormatException {
final float disorder) {
this.disorder_weight = disorder;
this.model = model;
query = sequence.toCharArray();
Expand Down
Expand Up @@ -43,7 +43,7 @@ public class SynchronizedOutFile {
* @throws FileNotFoundException
* @throws IOException
*/
public SynchronizedOutFile(File f, boolean gzipCompress) throws FileNotFoundException, IOException{
public SynchronizedOutFile(File f, boolean gzipCompress) throws IOException{
if ( f.isDirectory())
throw new FileNotFoundException("please provide a file and not a directory");

Expand All @@ -62,7 +62,7 @@ public SynchronizedOutFile(File f, boolean gzipCompress) throws FileNotFoundExce
*
* @param f
*/
public SynchronizedOutFile(File f) throws FileNotFoundException, IOException{
public SynchronizedOutFile(File f) throws IOException{

this(f,false);

Expand Down

0 comments on commit 758ceb6

Please sign in to comment.