-
Hi there! Does Configurate support any form of comment preservation? i.e., when any changes are written to a file, the comments in the file are preserved in the same location? Hope I didn't ask a question that was already answered here, I tried searching but nothing came up. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes -- the HOCON and XML formats currently roundtrip comments fairly reliably, and there is work in progress to support the same for the YAML loader in #175. These loaders will all give you When working with the object mapper, the |
Beta Was this translation helpful? Give feedback.
Yes -- the HOCON and XML formats currently roundtrip comments fairly reliably, and there is work in progress to support the same for the YAML loader in #175. These loaders will all give you
CommentedConfigurationNode
s which provide comment information for tinkering with.When working with the object mapper, the
@Comment
annotation will allow you to provide initial comments for mapped fields.