Skip to content

Commit

Permalink
Support latest source version in Javadoc processor
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Jun 26, 2020
1 parent 2f2d0e0 commit e635936
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import javax.annotation.processing.Filer;
import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes;
import javax.annotation.processing.SupportedSourceVersion;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.Element;
Expand Down Expand Up @@ -60,10 +59,15 @@
ThriftAnnotations.THRIFT_ENUM,
ThriftAnnotations.THRIFT_SERVICE,
ThriftAnnotations.THRIFT_STRUCT})
@SupportedSourceVersion(SourceVersion.RELEASE_8)
public class JavadocProcessor
extends AbstractProcessor
{
@Override
public SourceVersion getSupportedSourceVersion()
{
return SourceVersion.latest();
}

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

0 comments on commit e635936

Please sign in to comment.