mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-25 16:44:50 +01:00
fix: support every source version
This commit is contained in:
parent
85b3aeea1a
commit
2d944f31c5
1 changed files with 10 additions and 0 deletions
|
@ -15,6 +15,7 @@ import ftbsc.lll.proxies.ProxyType;
|
||||||
import ftbsc.lll.proxies.impl.TypeProxy;
|
import ftbsc.lll.proxies.impl.TypeProxy;
|
||||||
|
|
||||||
import javax.annotation.processing.*;
|
import javax.annotation.processing.*;
|
||||||
|
import javax.lang.model.SourceVersion;
|
||||||
import javax.lang.model.element.*;
|
import javax.lang.model.element.*;
|
||||||
import javax.lang.model.type.ExecutableType;
|
import javax.lang.model.type.ExecutableType;
|
||||||
import javax.lang.model.type.TypeMirror;
|
import javax.lang.model.type.TypeMirror;
|
||||||
|
@ -56,6 +57,15 @@ public class LilleroProcessor extends AbstractProcessor {
|
||||||
return ProcessorOptions.SUPPORTED;
|
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
|
* Returns the {@link ProcessorOptions} for this instance, creating the object if
|
||||||
* it hasn't been already.
|
* it hasn't been already.
|
||||||
|
|
Loading…
Reference in a new issue