fix(serde-hjson): Make inlineCommentType builder-style in HjsonWriter.Options

This commit is contained in:
2026-03-01 20:16:14 +01:00
parent e879050a33
commit 1b9958f980
2 changed files with 3 additions and 1 deletions
@@ -604,11 +604,12 @@ public class HjsonWriter implements TweedDataWriter {
private HjsonCommentType multilineCommentType = HjsonCommentType.BLOCK;
private HjsonStringType preferredInlineStringType = HjsonStringType.INLINE_QUOTELESS;
public void inlineCommentType(HjsonCommentType commentType) {
public Options inlineCommentType(HjsonCommentType commentType) {
if (commentType.block()) {
throw new IllegalArgumentException("Inline comment type must not be a block comment type: " + commentType);
}
this.inlineCommentType = commentType;
return this;
}
}
}