summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2024-05-31 20:21:37 +0200
committer zaaarf <me@zaaarf.foo>2024-05-31 20:21:37 +0200
commit2d944f31c54e89f922f2a8d475a9d0c38cec5b8f (patch)
treee16559193d06b21a2716c22989226d53f7c7b756 /src
parent85b3aeea1a2bff99fddb4bff5d290c942b6e338c (diff)
fix: support every source version0.6.3
Diffstat (limited to 'src')
-rw-r--r--src/main/java/ftbsc/lll/processor/LilleroProcessor.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java
index b0a6fc5..568e2e6 100644
--- a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java
+++ b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java
@@ -15,6 +15,7 @@ import ftbsc.lll.proxies.ProxyType;
import ftbsc.lll.proxies.impl.TypeProxy;
import javax.annotation.processing.*;
+import javax.lang.model.SourceVersion;
import javax.lang.model.element.*;
import javax.lang.model.type.ExecutableType;
import javax.lang.model.type.TypeMirror;
@@ -57,6 +58,15 @@ public class LilleroProcessor extends AbstractProcessor {
}
/**
+ * Always returns the latest version since this should never break.
+ * @return the latest version
+ */
+ @Override
+ public SourceVersion getSupportedSourceVersion() {
+ return SourceVersion.latest();
+ }
+
+ /**
* Returns the {@link ProcessorOptions} for this instance, creating the object if
* it hasn't been already.
* @return the {@link ProcessorOptions} for this instance