Not ready for Java 1.7 constructs just yet.

This commit is contained in:
j2blake 2013-02-04 17:38:29 -05:00
parent 7c2de3a6f2
commit 866c4435b6

View file

@ -42,8 +42,6 @@ import org.w3c.dom.Node;
import org.w3c.dom.NodeList; import org.w3c.dom.NodeList;
import org.xml.sax.SAXException; import org.xml.sax.SAXException;
import com.sun.net.httpserver.HttpServer;
import edu.cornell.mannlib.vitro.testing.AbstractTestClass; import edu.cornell.mannlib.vitro.testing.AbstractTestClass;
/** /**
@ -242,7 +240,10 @@ public class WebXmlTest extends AbstractTestClass {
} }
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
return "The class does not exist."; return "The class does not exist.";
} catch (InstantiationException | IllegalAccessException e) { } catch (InstantiationException e) {
return "The class does not have a public constructor "
+ "that takes zero arguments.";
} catch (IllegalAccessException e) {
return "The class does not have a public constructor " return "The class does not have a public constructor "
+ "that takes zero arguments."; + "that takes zero arguments.";
} }