Skip to content

Commit 8548e78

Browse files
authored
fix(core): report supported source version dynamically in annotation processor (#930)
1 parent 083c189 commit 8548e78

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

core/flamingock-processor/src/main/java/io/flamingock/core/processor/FlamingockAnnotationProcessor.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import javax.annotation.processing.AbstractProcessor;
3737
import javax.annotation.processing.ProcessingEnvironment;
3838
import javax.annotation.processing.RoundEnvironment;
39-
import javax.annotation.processing.SupportedSourceVersion;
4039
import javax.lang.model.SourceVersion;
4140
import javax.lang.model.element.TypeElement;
4241
import java.io.File;
@@ -118,7 +117,6 @@
118117
* @version 2.0
119118
* @since Flamingock v1.x
120119
*/
121-
@SupportedSourceVersion(SourceVersion.RELEASE_8)
122120
public class FlamingockAnnotationProcessor extends AbstractProcessor {
123121

124122
private static final String RESOURCES_PATH_ARG = "flamingock.resources";
@@ -167,6 +165,11 @@ public Set<String> getSupportedAnnotationTypes() {
167165
));
168166
}
169167

168+
@Override
169+
public SourceVersion getSupportedSourceVersion() {
170+
return SourceVersion.latestSupported();
171+
}
172+
170173
@Override
171174
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
172175
if (roundEnv.processingOver()) {

0 commit comments

Comments
 (0)