Java 类javax.annotation.processing.SupportedSourceVersion 实例源码

项目:GitHub    文件:AbstractGenerator.java   
@Override
public SourceVersion getSupportedSourceVersion() {
  @Nullable SupportedSourceVersion sourceVersion = this.getClass().getAnnotation(SupportedSourceVersion.class);
  if (sourceVersion != null) {
    return sourceVersion.value();
  }
  return SourceVersion.latestSupported();
}
项目:immutables    文件:AbstractGenerator.java   
@Override
public SourceVersion getSupportedSourceVersion() {
  @Nullable SupportedSourceVersion sourceVersion = this.getClass().getAnnotation(SupportedSourceVersion.class);
  if (sourceVersion != null) {
    return sourceVersion.value();
  }
  return SourceVersion.latestSupported();
}