We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6ab81 commit c37f024Copy full SHA for c37f024
validator-generator/src/main/java/io/avaje/validation/generator/FieldReader.java
@@ -44,6 +44,14 @@ final class FieldReader {
44
this.adapterFieldName = initShortName();
45
this.optionalValidation = Util.isNullable(element);
46
this.classLevel = classLevel;
47
+ if (classLevel) {
48
+ elementAnnotations
49
+ .annotations()
50
+ .removeIf(
51
+ e ->
52
+ "NonNull".equals(e.getKey().shortType())
53
+ || "NotNull".equals(e.getKey().shortType()));
54
+ }
55
}
56
57
FieldReader(TypeElement baseType, TypeElement mixInType, List<String> genericTypeParams) {
0 commit comments