fix: support every source version

This commit is contained in:
zaaarf 2024-05-31 20:21:37 +02:00
parent 85b3aeea1a
commit 2d944f31c5
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

@ -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.