From 548554effc79c3b9fd32f4f155d38061f8b43ee6 Mon Sep 17 00:00:00 2001 From: Sasha Sherstnev Date: Wed, 2 Oct 2013 18:14:19 +0100 Subject: [PATCH] Simplify code --- datamodel/compbio/metadata/Option.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 1.7.10.2