public List<CharSequence> getBuilderAttributeAnnotation() {
if (containingType.isGenerateJacksonProperties()
&& protoclass().isJacksonDeserialized()) {
List<CharSequence> jacksonPropertyAnnotation = Annotations.getAnnotationLines(element,
Collections.singleton(Annotations.JACKSON_PROPERTY),
false,
ElementType.METHOD,
importsResolver,
nullability);
List<CharSequence> annotations = Lists.newArrayList();
if (jacksonPropertyAnnotation.isEmpty()) {
annotations.add(jacksonPropertyAnnotation());
}
annotations.addAll(Annotations.getAnnotationLines(element,
Collections.<String>emptySet(),
protoclass().environment().hasJacksonLib(),
ElementType.METHOD,
importsResolver,
nullability));
return annotations;
}
return ImmutableList.of();
}
ValueAttribute.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:GitHub
作者:
评论列表
文章目录