Skip to content

Commit

Permalink
fix: unsupported java version
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm authored and manusa committed Oct 20, 2023
1 parent 0582849 commit c549d39
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import java.util.Set;

import javax.annotation.processing.*;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.Element;
import javax.lang.model.element.Name;
import javax.lang.model.element.TypeElement;
Expand All @@ -54,6 +55,12 @@ public class CustomResourceAnnotationProcessor extends AbstractProcessor {
public static final String PROCESSOR_OPTION_PARALLEL = "io.fabric8.crd.generator.parallel";
private final CRDGenerator generator = new CRDGenerator();

@Override
public SourceVersion getSupportedSourceVersion() {
return SourceVersion.latestSupported();
}

@SuppressWarnings("unchecked")
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
if (roundEnv.processingOver()) {
final Messager messager = processingEnv.getMessager();
Expand Down

0 comments on commit c549d39

Please sign in to comment.