From: Sasha Sherstnev Date: Wed, 2 Oct 2013 17:14:19 +0000 (+0100) Subject: Simplify code X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=548554effc79c3b9fd32f4f155d38061f8b43ee6;p=jabaws.git Simplify code --- diff --git a/datamodel/compbio/metadata/Option.java b/datamodel/compbio/metadata/Option.java index 7d9e9e4..d7cdd8f 100644 --- a/datamodel/compbio/metadata/Option.java +++ b/datamodel/compbio/metadata/Option.java @@ -71,7 +71,7 @@ public class Option implements Argument { // Has to have no arg constructor for JAXB } - public Option(String name, String description) throws MalformedURLException { + public Option(String name, String description) { this.name = name; this.description = description; } @@ -90,8 +90,8 @@ public class Option implements Argument { public void setBasicURL(URL url) { this.basicURL = url; } - public URL getBasicURL() throws MalformedURLException { - URL out = new URL ("http://unknown.jabaws.server.ac.uk"); + public URL getBasicURL() { + URL out = null; if (null != basicURL) { out = basicURL; }