fix: add missing " * " on new line for block comments, flip addCodeComment args (#2145)
This commit is contained in:
@@ -9,29 +9,33 @@ public enum CommentStyle {
|
||||
*/
|
||||
LINE("// ", "// ", ""),
|
||||
|
||||
// @formatter:off
|
||||
/**
|
||||
* <pre>
|
||||
* /*
|
||||
* * comment
|
||||
* */
|
||||
* */
|
||||
* </pre>
|
||||
*/
|
||||
BLOCK("/*\n ", " ", "\n */"),
|
||||
// @formatter:on
|
||||
BLOCK("/*\n * ", " * ", "\n */"),
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* /* comment */
|
||||
* </pre>
|
||||
*/
|
||||
BLOCK_CONDENSED("/* ", " ", " */"),
|
||||
BLOCK_CONDENSED("/* ", " * ", " */"),
|
||||
|
||||
// @formatter:off
|
||||
/**
|
||||
* <pre>
|
||||
* /**
|
||||
* * comment
|
||||
* */
|
||||
* */
|
||||
* </pre>
|
||||
*/
|
||||
// @formatter:on
|
||||
JAVADOC("/**\n * ", " * ", "\n */"),
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,7 +30,7 @@ public abstract class NotificationAttrNode extends LineAttrNode implements ICode
|
||||
addAttr(AType.CODE_COMMENTS, new CodeComment(comment, CommentStyle.LINE));
|
||||
}
|
||||
|
||||
public void addCodeComment(CommentStyle style, String comment) {
|
||||
public void addCodeComment(String comment, CommentStyle style) {
|
||||
addAttr(AType.CODE_COMMENTS, new CodeComment(comment, style));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user