From: Mateusz Warowny Date: Thu, 18 Nov 2021 19:59:14 +0000 (+0100) Subject: JAL-3066 Remove redundant throws declaration from SlivkaParamSet constructor. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5ce523b78c31acba6001c94db84c2671a8d09fe7;p=jalview.git JAL-3066 Remove redundant throws declaration from SlivkaParamSet constructor. --- diff --git a/src/jalview/ws/slivkaws/SlivkaDatastore.java b/src/jalview/ws/slivkaws/SlivkaDatastore.java index 0922d13..8bd446f 100644 --- a/src/jalview/ws/slivkaws/SlivkaDatastore.java +++ b/src/jalview/ws/slivkaws/SlivkaDatastore.java @@ -15,7 +15,7 @@ public class SlivkaDatastore implements ParamDatastoreI private SlivkaParamSet defaultPreset; private List presets = new ArrayList<>(); - SlivkaDatastore(SlivkaService service) throws IOException { + public SlivkaDatastore(SlivkaService service) { defaultPreset = new SlivkaParamSet(service); } diff --git a/src/jalview/ws/slivkaws/SlivkaParamSet.java b/src/jalview/ws/slivkaws/SlivkaParamSet.java index 9b74585..c8b99db 100644 --- a/src/jalview/ws/slivkaws/SlivkaParamSet.java +++ b/src/jalview/ws/slivkaws/SlivkaParamSet.java @@ -20,7 +20,7 @@ public class SlivkaParamSet implements WsParamSetI private List args = new ArrayList<>(); - SlivkaParamSet(SlivkaService service) throws IOException + SlivkaParamSet(SlivkaService service) { this.service = service; for (Parameter param : service.getParameters()) diff --git a/src/jalview/ws/slivkaws/SlivkaWSInstance.java b/src/jalview/ws/slivkaws/SlivkaWSInstance.java index 80e928a..613c702 100644 --- a/src/jalview/ws/slivkaws/SlivkaWSInstance.java +++ b/src/jalview/ws/slivkaws/SlivkaWSInstance.java @@ -231,13 +231,7 @@ public abstract class SlivkaWSInstance extends ServiceWithParameters { if (store == null) { - try - { - store = new SlivkaDatastore(service); - } catch (IOException e) - { - throw new IOError(e); - } + store = new SlivkaDatastore(service); } }