Skip to content

Commit 373f7db

Browse files
committed
Add missing supported source version
Closes gh-10929
1 parent 963cfea commit 373f7db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spring-boot-tools/spring-boot-autoconfigure-processor/src/main/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessor.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import javax.annotation.processing.AbstractProcessor;
3030
import javax.annotation.processing.RoundEnvironment;
3131
import javax.annotation.processing.SupportedAnnotationTypes;
32+
import javax.lang.model.SourceVersion;
3233
import javax.lang.model.element.AnnotationMirror;
3334
import javax.lang.model.element.AnnotationValue;
3435
import javax.lang.model.element.Element;
@@ -80,6 +81,11 @@ protected void addAnnotations(Map<String, String> annotations) {
8081
"org.springframework.boot.autoconfigure.AutoConfigureOrder");
8182
}
8283

84+
@Override
85+
public SourceVersion getSupportedSourceVersion() {
86+
return SourceVersion.latestSupported();
87+
}
88+
8389
@Override
8490
public boolean process(Set<? extends TypeElement> annotations,
8591
RoundEnvironment roundEnv) {

0 commit comments

Comments
 (0)