fix comments handle bug

This commit is contained in:
oppofind 2019-09-30 23:42:53 +08:00
parent 97f09c7595
commit 3c1a4d04c2
4 changed files with 11 additions and 5 deletions

View File

@ -461,6 +461,7 @@ public class SourceBuilder {
comment = field.getComment();
}
if (StringUtil.isNotEmpty(comment)) {
comment = comment.replace("\r\n","<br>");
comment = comment.replace("\n", "<br>");
}
if (DocClassUtil.isPrimitive(subTypeName)) {

View File

@ -5,8 +5,9 @@ import java.util.List;
public class ApiDoc {
/**
* @since 1.7+
* Order of controller
*
* @since 1.7+
*/
public int order;
@ -16,8 +17,9 @@ public class ApiDoc {
private String name;
/**
* @since 1.7+
* controller alias handled by md5
*
* @since 1.7+
*/
private String alias;

View File

@ -11,8 +11,9 @@ public class ApiMethodDoc implements Serializable {
private static final long serialVersionUID = 7211922919532562867L;
/**
* @since 1.7+
* method order
*
* @since 1.7+
*/
private int order;

View File

@ -23,14 +23,16 @@ public class ApiReqHeader {
private String desc;
/**
* @since 1.7.0
* required flag
*
* @since 1.7.0
*/
private boolean required;
/**
* @since 1.7.0
* Starting version number
*
* @since 1.7.0
*/
private String since = "-";