mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
FIX: omit warning "Can't get the delegate of the gradle IncrementalProcessingEnvironment." in eclipse build.
This commit is contained in:
1 parent
c157e6537b
commit
8151e710fc
1 file changed
+4
-1
@@ -111,6 +111,9 @@ public class AnnotationProcessor extends AbstractProcessor {
|
||||
}
|
||||
|
||||
@Override boolean want(ProcessingEnvironment procEnv, List<String> delayedWarnings) {
|
||||
// do not run on ECJ as it may print warnings
|
||||
if (procEnv.getClass().getName().startsWith("org.eclipse.jdt.")) return false;
|
||||
|
||||
ProcessingEnvironment javacProcEnv = getJavacProcessingEnvironment(procEnv, delayedWarnings);
|
||||
|
||||
if (javacProcEnv == null) return false;
|
||||
@@ -210,7 +213,7 @@ public class AnnotationProcessor extends AbstractProcessor {
|
||||
for (TypeElement elem : annotations) {
|
||||
zeroElems = false;
|
||||
Name n = elem.getQualifiedName();
|
||||
if (n.length() > 7 && n.subSequence(0, 7).toString().equals("lombok.")) continue;
|
||||
if (n.toString().startsWith("lombok.")) continue;
|
||||
onlyLombok = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user