mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
added check for rootElements existence
This commit is contained in:
parent
79c5b66c4c
commit
9f032fed5a
@ -95,6 +95,11 @@ public abstract class AbstractQuerydslProcessor extends AbstractProcessor {
|
||||
return ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS;
|
||||
}
|
||||
|
||||
if (roundEnv.getRootElements() == null || roundEnv.getRootElements().isEmpty()) {
|
||||
processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE, "No sources to process");
|
||||
return ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS;
|
||||
}
|
||||
|
||||
conf = createConfiguration(roundEnv);
|
||||
context = new Context();
|
||||
Set<Class<? extends Annotation>> entityAnnotations = conf.getEntityAnnotations();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user