Files
omega-config/omega-config-base/src/main/java/draylar/omegaconfig/api/Comment.java
T
2021-05-26 20:27:14 -04:00

20 lines
584 B
Java

package draylar.omegaconfig.api;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Represents a description on a config entry.
*
* <p>
* When a configuration is serialized, any field elements with the {@link Comment} annotation
* will be prefixed with a // comment on the previous line, with the value specified by this annotation.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Comment {
String value() default "";
}