From: Mateusz Warowny Date: Mon, 20 Sep 2021 15:23:06 +0000 (+0200) Subject: JAL-3878 Remove throws declaration from param store construction. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4ca53c1d66d18d6bda1466dd7d22359031aaaeed;p=jalview.git JAL-3878 Remove throws declaration from param store construction. --- 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); } }