mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 15:29:22 +00:00
fixed regression in JSDoc
This commit is contained in:
parent
5cebee83e3
commit
ac91e9f39d
@ -185,7 +185,8 @@ public class JSDoc {
|
||||
Comment comment = compilationUnit.docComments.getComment(mainConstructor);
|
||||
String author = null;
|
||||
if (comment != null) {
|
||||
List<String> commentLines = new ArrayList<>(Arrays.asList(commentText.split("\n")));
|
||||
List<String> commentLines = comment.getText() != null
|
||||
? new ArrayList<>(Arrays.asList(comment.getText().split("\n"))) : null;
|
||||
// replace the class comment with the main constructor's
|
||||
commentText = comment.getText();
|
||||
// gets the author for further insertion
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user