Skip to content

Commit

Permalink
docs(yaml): add javadoc for constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Siroshun09 committed Feb 23, 2024
1 parent 4cf36b4 commit bdde9dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public record YamlBlockComment(@NotNull String content, int prependBlankLines) i
*/
public static final String TYPE = "block";

/**
* @param content the content of the comment
* @param prependBlankLines the number of blank lines before the block comments
*/
public YamlBlockComment {
Objects.requireNonNull(content);
if (prependBlankLines < 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public record YamlInlineComment(@NotNull String content) implements SimpleCommen
*/
public static final String TYPE = "inline";

/**
* @param content the content of the comment
*/
public YamlInlineComment {
Objects.requireNonNull(content);
}
Expand Down

0 comments on commit bdde9dd

Please sign in to comment.