< prev index next >
modules/graphics/src/main/java/com/sun/javafx/application/HostServicesDelegate.java
Print this page
rev 9717 : 8151320: Remove unnecessary addReads from JavaFX
@@ -23,11 +23,10 @@
* questions.
*/
package com.sun.javafx.application;
-import com.sun.javafx.util.ModuleHelper;
import java.lang.reflect.Method;
import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
import javafx.application.Application;
@@ -48,13 +47,10 @@
"com.sun.deploy.uitoolkit.impl.fx.HostServicesFactory";
Class factoryClass = Class.forName(factoryClassName,
true,
HostServicesDelegate.class.getClassLoader());
- Object thisModule = ModuleHelper.getModule(HostServicesDelegate.class);
- Object targetModule = ModuleHelper.getModule(factoryClass);
- ModuleHelper.addReads(thisModule, targetModule);
getInstanceMeth = factoryClass.getMethod(
"getInstance", Application.class);
} catch (Exception ex) {
ex.printStackTrace();
< prev index next >