private String getJavaDoc(String comments, String prefix) {
        if (!comments.isEmpty()) {
            StringBuilder builder = new StringBuilder("/**\n").append(prefix).append(" * <pre>\n");
            for (String line : HtmlEscapers.htmlEscaper().escape(comments).split("\n")) {
                String replace = line.replace("*/", "&#42;&#47;").replace("*", "&#42;");
                builder.append(prefix).append(" * ").append(replace).append("\n");
            }
            builder.append(prefix).append(" * </pre>\n").append(prefix).append(" */");
            return builder.toString();
        }
        return null;
    }
Java doc

@param comments
@param prefix
@return
compiler/src/main/java/com/alipay/sofa/gen/base/AbstractGenerator.java