diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-08-20 21:37:14 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-08-20 21:37:14 +0200 |
commit | 13c1fde7a0102fc951a8a488943681f1c57ea27e (patch) | |
tree | ab676e87a76503f8264d208060709620ce04b958 /src/core/lombok | |
parent | 0904b1fd3a831ca5e056921bb37f51c759e2e074 (diff) | |
download | lombok-13c1fde7a0102fc951a8a488943681f1c57ea27e.tar.gz lombok-13c1fde7a0102fc951a8a488943681f1c57ea27e.tar.bz2 lombok-13c1fde7a0102fc951a8a488943681f1c57ea27e.zip |
[fixes #1813] erroneous message on eclipse that lombok ‘can’t get the delegate of the gradle IncrementalProcessingEnvironment’.
Diffstat (limited to 'src/core/lombok')
-rw-r--r-- | src/core/lombok/core/AnnotationProcessor.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/core/lombok/core/AnnotationProcessor.java b/src/core/lombok/core/AnnotationProcessor.java index d2efa87c..293bfef6 100644 --- a/src/core/lombok/core/AnnotationProcessor.java +++ b/src/core/lombok/core/AnnotationProcessor.java @@ -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) { |