Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if (element.getModifiers().contains(Modifier.FINAL) ||
element.getModifiers().contains(Modifier.STATIC) ||
element.getModifiers().contains(Modifier.PRIVATE)) {
error(element, "Field must not be private, static or final");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment