You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As stated, AbstractCommentedConfig.clearComments() doesn't actually clear the comments. It clears the comment map, but the entry set still contains its comments, and that is what is referenced when writing the file, so the comments remain.
The text was updated successfully, but these errors were encountered:
I see what the problem is (or at least one problem): the comments may be stored in subconfigs, but only the root map is cleaned when clearComments() is called. Therefore the comments remains...
The subconfigs' comments should be cleared recursively.
As stated,
AbstractCommentedConfig.clearComments()
doesn't actually clear the comments. It clears the comment map, but the entry set still contains its comments, and that is what is referenced when writing the file, so the comments remain.The text was updated successfully, but these errors were encountered: