diff options
author | izebit <izebit@gmail.com> | 2016-04-24 01:37:11 +0400 |
---|---|---|
committer | izebit <izebit@gmail.com> | 2016-04-24 01:37:11 +0400 |
commit | 0aea835130ee41dfc5144fdd2eb0952092118c09 (patch) | |
tree | ce550f342e146acc919199574decc6ab75e91b49 /src | |
parent | 26ad9e7f5f4de77436d3d63e4a43e8cb77621c15 (diff) | |
download | lombok-0aea835130ee41dfc5144fdd2eb0952092118c09.tar.gz lombok-0aea835130ee41dfc5144fdd2eb0952092118c09.tar.bz2 lombok-0aea835130ee41dfc5144fdd2eb0952092118c09.zip |
delete redundant code
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/javac/apt/LombokProcessor.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/lombok/javac/apt/LombokProcessor.java b/src/core/lombok/javac/apt/LombokProcessor.java index 128545c7..6547c143 100644 --- a/src/core/lombok/javac/apt/LombokProcessor.java +++ b/src/core/lombok/javac/apt/LombokProcessor.java @@ -273,14 +273,12 @@ public class LombokProcessor extends AbstractProcessor { if (newLevels.isEmpty()) return false; newLevels.retainAll(priorityLevelsRequiringResolutionReset); - if (newLevels.isEmpty()) { - // None of the new levels need resolution, so just keep going. - continue; - } else { + if (!newLevels.isEmpty()){ // Force a new round to reset resolution. The next round will cause this method (process) to be called again. forceNewRound((JavacFiler) processingEnv.getFiler()); return false; } + // None of the new levels need resolution, so just keep going. } } @@ -310,6 +308,6 @@ public class LombokProcessor extends AbstractProcessor { * We just return the latest version of whatever JDK we run on. Stupid? Yeah, but it's either that or warnings on all versions but 1. */ @Override public SourceVersion getSupportedSourceVersion() { - return SourceVersion.values()[SourceVersion.values().length - 1]; + return SourceVersion.latest(); } } |