Fix TableBuilder.build() mutating fields #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TableBuilder.build() sets borderType, headerColor, and borderColor directly on the instance fields. Calling build() twice can produce different results (e.g. colors lost after first call with ANSI disabled).
Fix: use local variables instead of mutating builder state.