Skip to content

Commit c9e55d8

Browse files
authored
cancel generation on error (#287)
prevents apt errors from spiraling
1 parent 4c61e78 commit c9e55d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

validator-generator/src/main/java/io/avaje/validation/generator/ValidationProcessor.java

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ private void readModule() {
9898

9999
@Override
100100
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment round) {
101+
if (round.errorRaised()) {
102+
return false;
103+
}
101104
APContext.setProjectModuleElement(annotations, round);
102105
readModule();
103106
getElements(round, AvajeConstraintPrism.PRISM_TYPE).ifPresent(this::writeConstraintAdapters);

0 commit comments

Comments
 (0)