diff options
author | Christian Schlichtherle <christian@schlichtherle.de> | 2021-01-02 17:24:19 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2021-01-15 10:37:55 +0100 |
commit | 648a56cb0adf0c0ad0147898de081c5feee107f0 (patch) | |
tree | ffa741c35bbb848054aba570e48fe6e8e3324727 /src | |
parent | 4f360802f59fd25fa08a1201577c19a24493802b (diff) | |
download | lombok-648a56cb0adf0c0ad0147898de081c5feee107f0.tar.gz lombok-648a56cb0adf0c0ad0147898de081c5feee107f0.tar.bz2 lombok-648a56cb0adf0c0ad0147898de081c5feee107f0.zip |
Improve Javadoc and consistently use SourceVersion.latest().
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lombok/core/AnnotationProcessor.java | 6 | ||||
-rw-r--r-- | src/core/lombok/javac/HandlerLibrary.java | 2 | ||||
-rw-r--r-- | src/core/lombok/javac/apt/LombokProcessor.java | 2 | ||||
-rw-r--r-- | src/core/lombok/javac/apt/Processor.java | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/core/lombok/core/AnnotationProcessor.java b/src/core/lombok/core/AnnotationProcessor.java index c9171284..3fef46b8 100644 --- a/src/core/lombok/core/AnnotationProcessor.java +++ b/src/core/lombok/core/AnnotationProcessor.java @@ -69,7 +69,7 @@ public class AnnotationProcessor extends AbstractProcessor { private final List<String> delayedWarnings = new ArrayList<String>(); /** - * This method is a simplified version of {@link lombok.javac.apt.LombokProcessor.getJavacProcessingEnvironment} + * This method is a simplified version of {@link lombok.javac.apt.LombokProcessor#getJavacProcessingEnvironment} * It simply returns the processing environment, but in case of gradle incremental compilation, * the delegate ProcessingEnvironment of the gradle wrapper is returned. */ @@ -120,7 +120,7 @@ public class AnnotationProcessor extends AbstractProcessor { } /** - * InteliJ >= 2020.3 + * IntelliJ IDEA >= 2020.3 */ private static Object tryGetProxyDelegateToField(Class<?> delegateClass, Object instance) { try { @@ -257,6 +257,6 @@ public class AnnotationProcessor 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. Blame Joe. */ @Override public SourceVersion getSupportedSourceVersion() { - return SourceVersion.values()[SourceVersion.values().length - 1]; + return SourceVersion.latest(); } } diff --git a/src/core/lombok/javac/HandlerLibrary.java b/src/core/lombok/javac/HandlerLibrary.java index 9e7b8fe5..c2bf8512 100644 --- a/src/core/lombok/javac/HandlerLibrary.java +++ b/src/core/lombok/javac/HandlerLibrary.java @@ -65,7 +65,7 @@ public class HandlerLibrary { /** * Creates a new HandlerLibrary that will report any problems or errors to the provided messager. - * You probably want to use {@link #load(Messager)} instead. + * You probably want to use {@link #load(Messager, Trees)} instead. */ public HandlerLibrary(Messager messager) { ConfigurationKeysLoader.LoaderLoader.loadAllConfigurationKeys(); diff --git a/src/core/lombok/javac/apt/LombokProcessor.java b/src/core/lombok/javac/apt/LombokProcessor.java index 485b82a4..6e5e603b 100644 --- a/src/core/lombok/javac/apt/LombokProcessor.java +++ b/src/core/lombok/javac/apt/LombokProcessor.java @@ -504,7 +504,7 @@ public class LombokProcessor extends AbstractProcessor { } /** - * InteliJ >= 2020.3 + * IntelliJ IDEA >= 2020.3 */ private Object tryGetProxyDelegateToField(Class<?> delegateClass, Object instance) { try { diff --git a/src/core/lombok/javac/apt/Processor.java b/src/core/lombok/javac/apt/Processor.java index f15bf74c..e0de363d 100644 --- a/src/core/lombok/javac/apt/Processor.java +++ b/src/core/lombok/javac/apt/Processor.java @@ -222,7 +222,7 @@ public class Processor 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(); } @Override public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { |