Skip to content

Commit a55fbcb

Browse files
authored
chore: apt processors now suggests the latest version (#1332)
1 parent a8c7fee commit a55fbcb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

operator-framework/src/main/java/io/javaoperatorsdk/operator/config/runtime/ControllerConfigurationAnnotationProcessor.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import javax.annotation.processing.ProcessingEnvironment;
77
import javax.annotation.processing.RoundEnvironment;
88
import javax.annotation.processing.SupportedAnnotationTypes;
9-
import javax.annotation.processing.SupportedSourceVersion;
109
import javax.lang.model.SourceVersion;
1110
import javax.lang.model.element.Element;
1211
import javax.lang.model.element.ElementKind;
@@ -25,7 +24,6 @@
2524
import static io.javaoperatorsdk.operator.config.runtime.RuntimeControllerMetadata.RECONCILERS_RESOURCE_PATH;
2625

2726
@SupportedAnnotationTypes("io.javaoperatorsdk.operator.api.reconciler.ControllerConfiguration")
28-
@SupportedSourceVersion(SourceVersion.RELEASE_11)
2927
public class ControllerConfigurationAnnotationProcessor extends AbstractProcessor {
3028

3129
private static final Logger log =
@@ -34,6 +32,11 @@ public class ControllerConfigurationAnnotationProcessor extends AbstractProcesso
3432
private AccumulativeMappingWriter controllersResourceWriter;
3533
private TypeParameterResolver typeParameterResolver;
3634

35+
@Override
36+
public SourceVersion getSupportedSourceVersion() {
37+
return SourceVersion.latest();
38+
}
39+
3740
@Override
3841
public synchronized void init(ProcessingEnvironment processingEnv) {
3942
super.init(processingEnv);

0 commit comments

Comments
 (0)