diff --git a/barista-processor/src/main/java/com/markelliot/barista/processor/EndpointHandlerProcessor.java b/barista-processor/src/main/java/com/markelliot/barista/processor/EndpointHandlerProcessor.java index 3876c65..49479c0 100644 --- a/barista-processor/src/main/java/com/markelliot/barista/processor/EndpointHandlerProcessor.java +++ b/barista-processor/src/main/java/com/markelliot/barista/processor/EndpointHandlerProcessor.java @@ -46,7 +46,6 @@ import javax.annotation.processing.Processor; import javax.annotation.processing.RoundEnvironment; import javax.annotation.processing.SupportedAnnotationTypes; -import javax.annotation.processing.SupportedSourceVersion; import javax.lang.model.SourceVersion; import javax.lang.model.element.Element; import javax.lang.model.element.ElementKind; @@ -63,9 +62,13 @@ "com.markelliot.barista.annotations.Http.Put", "com.markelliot.barista.annotations.Http.Delete", }) -@SupportedSourceVersion(SourceVersion.RELEASE_17) public final class EndpointHandlerProcessor extends AbstractProcessor { + @Override + public SourceVersion getSupportedSourceVersion() { + return SourceVersion.latestSupported(); + } + @Override public boolean process(Set annotations, RoundEnvironment roundEnv) { try {