mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 20:15:09 +00:00
[fixes #1813] erroneous message on eclipse that lombok ‘can’t get the delegate of the gradle IncrementalProcessingEnvironment’.
This commit is contained in:
1 parent
0904b1fd3a
commit
13c1fde7a0
1 file changed
+1
-9
@@ -72,15 +72,7 @@ public class AnnotationProcessor extends AbstractProcessor {
|
||||
* the delegate ProcessingEnvironment of the gradle wrapper is returned.
|
||||
*/
|
||||
public static ProcessingEnvironment getJavacProcessingEnvironment(ProcessingEnvironment procEnv, List<String> delayedWarnings) {
|
||||
ProcessingEnvironment javacProcEnv = tryRecursivelyObtainJavacProcessingEnvironment(procEnv);
|
||||
|
||||
if (javacProcEnv == null) {
|
||||
if (!procEnv.getClass().getName().startsWith("org.eclipse.jdt.")) {
|
||||
delayedWarnings.add("Can't get the delegate of the gradle IncrementalProcessingEnvironment.");
|
||||
}
|
||||
}
|
||||
|
||||
return javacProcEnv;
|
||||
return tryRecursivelyObtainJavacProcessingEnvironment(procEnv);
|
||||
}
|
||||
|
||||
private static ProcessingEnvironment tryRecursivelyObtainJavacProcessingEnvironment(ProcessingEnvironment procEnv) {
|
||||
|
||||
Reference in new issue
Block a user