]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.maps/src/org/simantics/maps/sg/MapNode.java
Fixed most warnings from district codebase after JavaSE-11 switch
[simantics/district.git] / org.simantics.district.maps / src / org / simantics / maps / sg / MapNode.java
index fe83bd10999c07a24d54b4b0b0678772799f2eac..5bdd2555c7bb373b53a6c34789f13f92fd0ae688 100644 (file)
@@ -197,7 +197,7 @@ public class MapNode extends G2DNode implements ITileListener  {
             // Try to load eclipse specific implementation of TileJobQueue, if it doesn't exist, fall back to pojo implementation 
             try {
                 Class<?> proxyClass = (Class<?>) Class.forName("org.simantics.maps.eclipse.TileJobQueue");
-                job = (ITileJobQueue)proxyClass.newInstance();
+                job = (ITileJobQueue)proxyClass.getDeclaredConstructor().newInstance();
             } catch (ClassNotFoundException e1) {
             } catch (InstantiationException e) {
             } catch (IllegalAccessException e) {