StructSchemaExtractionStrategySupport.java 文件源码

java
阅读 131 收藏 0 点赞 0 评论 0

项目:Reer 作者:
private static String propertyDescription(ModelSchemaExtractionContext<?> parentContext, ModelProperty<?> property) {
    if (property.getDeclaredBy().size() == 1 && property.getDeclaredBy().contains(parentContext.getType())) {
        return String.format("property '%s'", property.getName());
    } else {
        ImmutableSortedSet<String> declaredBy = ImmutableSortedSet.copyOf(Iterables.transform(property.getDeclaredBy(), Functions.toStringFunction()));
        return String.format("property '%s' declared by %s", property.getName(), Joiner.on(", ").join(declaredBy));
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号