aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/apt
diff options
context:
space:
mode:
authorChristian Schlichtherle <christian@schlichtherle.de>2021-01-02 17:24:19 +0100
committerRoel Spilker <r.spilker@gmail.com>2021-01-15 10:37:55 +0100
commit648a56cb0adf0c0ad0147898de081c5feee107f0 (patch)
treeffa741c35bbb848054aba570e48fe6e8e3324727 /src/core/lombok/javac/apt
parent4f360802f59fd25fa08a1201577c19a24493802b (diff)
downloadlombok-648a56cb0adf0c0ad0147898de081c5feee107f0.tar.gz
lombok-648a56cb0adf0c0ad0147898de081c5feee107f0.tar.bz2
lombok-648a56cb0adf0c0ad0147898de081c5feee107f0.zip
Improve Javadoc and consistently use SourceVersion.latest().
Diffstat (limited to 'src/core/lombok/javac/apt')
-rw-r--r--src/core/lombok/javac/apt/LombokProcessor.java2
-rw-r--r--src/core/lombok/javac/apt/Processor.java2
2 files changed, 2 insertions, 2 deletions
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) {