Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 059a03de authored by Jacky Wang's avatar Jacky Wang
Browse files

Update supported source version for IndexableProcessor

Bug: 385793553
Flag: EXEMPT annotation processor
Test: build
Change-Id: Icec6b6ea6e0941ae4fc340f6db7e1243b0ffb20e
parent 82f915cb
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ import javax.annotation.processing.ProcessingEnvironment;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.annotation.processing.SupportedOptions;
import javax.annotation.processing.SupportedSourceVersion;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.Element;
import javax.lang.model.element.Modifier;
@@ -48,7 +47,6 @@ import javax.tools.Diagnostic.Kind;
 * Annotation processor for {@link SearchIndexable} that generates {@link SearchIndexableResources}
 * subclasses.
 */
@SupportedSourceVersion(SourceVersion.RELEASE_17)
@SupportedOptions(IndexableProcessor.PACKAGE_KEY)
@SupportedAnnotationTypes({"com.android.settingslib.search.SearchIndexable"})
public class IndexableProcessor extends AbstractProcessor {
@@ -68,6 +66,11 @@ public class IndexableProcessor extends AbstractProcessor {
    private Messager mMessager;
    private boolean mRanOnce;

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

    @Override
    public boolean process(Set<? extends TypeElement> annotations,
            RoundEnvironment roundEnvironment) {