Jsonschema2PojoTask.java 文件源码

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

项目:GitHub 作者:
/**
 * Sets the 'customAnnotator' property of this class
 *
 * @param customAnnotator
 *            A custom annotator to use to annotate the generated types
 */
@SuppressWarnings("unchecked")
public void setCustomAnnotator(String customAnnotator) {
    if (isNotBlank(customAnnotator)) {
        try {
            this.customAnnotator = (Class<? extends Annotator>) Class.forName(customAnnotator);
        } catch (ClassNotFoundException e) {
            throw new IllegalArgumentException(e);
        }
    } else {
        this.customAnnotator = NoopAnnotator.class;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号