Skip to content

Commit a298005

Browse files
authored
Allow annotation processing to float upwards in version support (#317)
1 parent 7f41aae commit a298005

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

barista-processor/src/main/java/com/markelliot/barista/processor/EndpointHandlerProcessor.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
import javax.annotation.processing.Processor;
4747
import javax.annotation.processing.RoundEnvironment;
4848
import javax.annotation.processing.SupportedAnnotationTypes;
49-
import javax.annotation.processing.SupportedSourceVersion;
5049
import javax.lang.model.SourceVersion;
5150
import javax.lang.model.element.Element;
5251
import javax.lang.model.element.ElementKind;
@@ -63,9 +62,13 @@
6362
"com.markelliot.barista.annotations.Http.Put",
6463
"com.markelliot.barista.annotations.Http.Delete",
6564
})
66-
@SupportedSourceVersion(SourceVersion.RELEASE_17)
6765
public final class EndpointHandlerProcessor extends AbstractProcessor {
6866

67+
@Override
68+
public SourceVersion getSupportedSourceVersion() {
69+
return SourceVersion.latestSupported();
70+
}
71+
6972
@Override
7073
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
7174
try {

0 commit comments

Comments
 (0)