diff --git a/format/yaml/src/main/java/com/github/siroshun09/configapi/format/yaml/comment/YamlBlockComment.java b/format/yaml/src/main/java/com/github/siroshun09/configapi/format/yaml/comment/YamlBlockComment.java index 25741769..acf91c6b 100644 --- a/format/yaml/src/main/java/com/github/siroshun09/configapi/format/yaml/comment/YamlBlockComment.java +++ b/format/yaml/src/main/java/com/github/siroshun09/configapi/format/yaml/comment/YamlBlockComment.java @@ -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) { diff --git a/format/yaml/src/main/java/com/github/siroshun09/configapi/format/yaml/comment/YamlInlineComment.java b/format/yaml/src/main/java/com/github/siroshun09/configapi/format/yaml/comment/YamlInlineComment.java index ecf04e5c..ed0adae4 100644 --- a/format/yaml/src/main/java/com/github/siroshun09/configapi/format/yaml/comment/YamlInlineComment.java +++ b/format/yaml/src/main/java/com/github/siroshun09/configapi/format/yaml/comment/YamlInlineComment.java @@ -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); }