]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.maps/src/org/simantics/maps/WebService.java
Fixed most warnings from district codebase after JavaSE-11 switch
[simantics/district.git] / org.simantics.district.maps / src / org / simantics / maps / WebService.java
index 3bfab58cef2bf947b654f378cc25e56d002512f1..0e6ccf9cd1e6be6842bb7e7bea8bf22ddb2f53ba 100644 (file)
@@ -12,6 +12,7 @@
 package org.simantics.maps;
 
 import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
 import java.net.HttpURLConnection;
 import java.net.InetSocketAddress;
 import java.net.MalformedURLException;
@@ -47,10 +48,9 @@ public class WebService {
         IProxyUtil util = null;
         try {
             Class<?> proxyClass = (Class<?>) Class.forName("org.simantics.maps.eclipse.EclipseProxyUtil");
-            util = (IProxyUtil)proxyClass.newInstance();
-        } catch (ClassNotFoundException e1) {
-        } catch (InstantiationException e) {
-        } catch (IllegalAccessException e) {
+            util = (IProxyUtil)proxyClass.getDeclaredConstructor().newInstance();
+        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | IllegalArgumentException
+                | InvocationTargetException | NoSuchMethodException | SecurityException e) {
         }
         // AppletProxyUtil should exist always..
         if(util == null) {