Skip to content

Commit

Permalink
Allow annotation processing to float upwards in version support (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
markelliot authored Sep 9, 2024
1 parent 7f41aae commit a298005
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
try {
Expand Down

0 comments on commit a298005

Please sign in to comment.