Created
May 31, 2010 14:43
-
-
Save anonymous/419888 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void removeJavaFXMethods(Set<Method> methods) { | |
try { | |
Class<?> fxClazz = Class.forName("com.sun.javafx.runtime.FXObject"); | |
if (fxClazz.isAssignableFrom(moduleClass)) { | |
Iterator<Method> iterator = methods.iterator(); | |
while (iterator.hasNext()) { | |
Method m = iterator.next(); | |
if (fxClazz.isAssignableFrom(m.getDeclaringClass())) | |
iterator.remove(); | |
} | |
} | |
} catch (ClassNotFoundException cnfe) { | |
// this code surely isn't JavaFX code | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment