JAL-1688 compiler warnings removed
[jalview.git] / src / jalview / gui / RestInputParamEditDialog.java
index 6078377..9a71770 100644 (file)
@@ -50,7 +50,7 @@ public class RestInputParamEditDialog extends GRestInputParamEditDialog
     try
     {
       return (InputType) (typeclass.get(name).getConstructor()
-              .newInstance(null));
+              .newInstance());
     } catch (Throwable x)
     {
       System.err
@@ -187,7 +187,7 @@ public class RestInputParamEditDialog extends GRestInputParamEditDialog
       {
         JPanel inopts = new JPanel(new MigLayout());
         ArrayList<JPanel> opts = new ArrayList<JPanel>(), prms = new ArrayList<JPanel>();
-        jtype = (InputType) (type.getConstructor().newInstance(null));
+        jtype = (InputType) (type.getConstructor().newInstance());
         typeclass.put(jtype.getURLtokenPrefix(), type);
         // and populate parameters from this type
         OptsAndParamsPage opanp = new OptsAndParamsPage(this, true);