From 5ce523b78c31acba6001c94db84c2671a8d09fe7 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Thu, 18 Nov 2021 20:59:14 +0100 Subject: [PATCH] JAL-3066 Remove redundant throws declaration from SlivkaParamSet constructor. --- src/jalview/ws/slivkaws/SlivkaDatastore.java | 2 +- src/jalview/ws/slivkaws/SlivkaParamSet.java | 2 +- src/jalview/ws/slivkaws/SlivkaWSInstance.java | 8 +------- 3 files changed, 3 insertions(+), 9 deletions(-) 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); } } -- 1.7.10.2