fix comments handle bug
This commit is contained in:
parent
97f09c7595
commit
3c1a4d04c2
|
@ -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)) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 = "-";
|
||||
|
||||
|
|
Loading…
Reference in New Issue