java类javax.annotation.processing.SupportedSourceVersion的实例源码

AbstractGenerator.java 文件源码 项目:GitHub 阅读 45 收藏 0 点赞 0 评论 0
@Override
public SourceVersion getSupportedSourceVersion() {
  @Nullable SupportedSourceVersion sourceVersion = this.getClass().getAnnotation(SupportedSourceVersion.class);
  if (sourceVersion != null) {
    return sourceVersion.value();
  }
  return SourceVersion.latestSupported();
}
AbstractGenerator.java 文件源码 项目:immutables 阅读 31 收藏 0 点赞 0 评论 0
@Override
public SourceVersion getSupportedSourceVersion() {
  @Nullable SupportedSourceVersion sourceVersion = this.getClass().getAnnotation(SupportedSourceVersion.class);
  if (sourceVersion != null) {
    return sourceVersion.value();
  }
  return SourceVersion.latestSupported();
}


问题


面经


文章

微信
公众号

扫码关注公众号