Skip to content

Instantly share code, notes, and snippets.

Created May 31, 2010 14:43
Show Gist options
  • Save anonymous/419888 to your computer and use it in GitHub Desktop.
Save anonymous/419888 to your computer and use it in GitHub Desktop.
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