@SuppressWarnings("RedundantIfStatement") boolean shouldFieldBeIgnored(FieldNode fieldNode) { if (fieldNode == keyField) return true; if (fieldNode == ownerField) return true; if (getAnnotation(fieldNode, IGNORE_ANNOTATION) != null) return true; if (fieldNode.isFinal()) return true; if (fieldNode.getName().startsWith("$")) return true; if ((fieldNode.getModifiers() & ACC_TRANSIENT) != 0) return true; return false; }
boolean shouldFieldBeIgnoredForValidation(FieldNode fieldNode) { if (getAnnotation(fieldNode, IGNORE_ANNOTATION) != null) return true; if (fieldNode.getName().startsWith("$")) return true; if ((fieldNode.getModifiers() & ACC_TRANSIENT) != 0) return true; return false; }