Simplify code
authorSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Wed, 2 Oct 2013 17:14:19 +0000 (18:14 +0100)
committerSasha Sherstnev <a.sherstnev@dundee.ac.uk>
Wed, 2 Oct 2013 17:14:19 +0000 (18:14 +0100)
datamodel/compbio/metadata/Option.java

index 7d9e9e4..d7cdd8f 100644 (file)
@@ -71,7 +71,7 @@ public class Option<T> implements Argument<T> {
                // Has to have no arg constructor for JAXB\r
        }\r
 \r
-       public Option(String name, String description) throws MalformedURLException {\r
+       public Option(String name, String description) {\r
                this.name = name;\r
                this.description = description;\r
        }\r
@@ -90,8 +90,8 @@ public class Option<T> implements Argument<T> {
        public void setBasicURL(URL url) {\r
                this.basicURL = url;\r
        }\r
-       public URL getBasicURL() throws MalformedURLException {\r
-               URL out = new URL ("http://unknown.jabaws.server.ac.uk");\r
+       public URL getBasicURL() {\r
+               URL out = null;\r
                if (null != basicURL) {\r
                        out = basicURL;\r
                }\r