diff options
author | Roel Spilker <r.spilker@gmail.com> | 2016-05-11 21:55:52 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2016-05-11 21:55:52 +0200 |
commit | f986b02ace15140cfd279175fd272e9993f99c38 (patch) | |
tree | 60d02f41232790297ad46dd12cd273e53873793f /src/core/lombok/javac | |
parent | baef6231e4c0d71d513bb9c57c4c27acc6e6a332 (diff) | |
parent | 0aea835130ee41dfc5144fdd2eb0952092118c09 (diff) | |
download | lombok-f986b02ace15140cfd279175fd272e9993f99c38.tar.gz lombok-f986b02ace15140cfd279175fd272e9993f99c38.tar.bz2 lombok-f986b02ace15140cfd279175fd272e9993f99c38.zip |
Merge pull request #1095 from izebit/master
delete redundant code
Diffstat (limited to 'src/core/lombok/javac')
-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(); } } |