From 2d944f31c54e89f922f2a8d475a9d0c38cec5b8f Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 31 May 2024 20:21:37 +0200 Subject: fix: support every source version --- src/main/java/ftbsc/lll/processor/LilleroProcessor.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main') 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; @@ -56,6 +57,15 @@ public class LilleroProcessor extends AbstractProcessor { return ProcessorOptions.SUPPORTED; } + /** + * 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. -- cgit v1.2.3-56-ga3b1