@Repeatable(value=SerdeCommentsContainer.class) @Retention(value=RUNTIME) @Target(value=FIELD) public @interface SerdeComment
The comment is only added to the configuration we're serializing to if it's a
CommentedConfig.
When writing the configuration to a file (with a ConfigWriter), the
comments are only written if that's supported by the configuration format.
class Player {
@SerdeComment("The username of the Player, as reported by the database.")
String username;
}
class MyObject {
@SerdeComment("First line of comment.")
@SerdeComment("Second line of comment.")
String someStringField;
}
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value |