@Override
public SourceVersion getSupportedSourceVersion() {
@Nullable SupportedSourceVersion sourceVersion = this.getClass().getAnnotation(SupportedSourceVersion.class);
if (sourceVersion != null) {
return sourceVersion.value();
}
return SourceVersion.latestSupported();
}
java类javax.annotation.processing.SupportedSourceVersion的实例源码
AbstractGenerator.java 文件源码
项目:GitHub
阅读 45
收藏 0
点赞 0
评论 0
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();
}