From 76c9797c010d7acd88edd1620cebe752cdf7d1de Mon Sep 17 00:00:00 2001 From: Robinson Date: Sat, 19 Aug 2023 15:52:33 +0200 Subject: [PATCH] Added description to annotation --- src/dorkbox/propertyLoader/Property.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/dorkbox/propertyLoader/Property.java b/src/dorkbox/propertyLoader/Property.java index 573e181..29a8476 100644 --- a/src/dorkbox/propertyLoader/Property.java +++ b/src/dorkbox/propertyLoader/Property.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 dorkbox, llc + * Copyright 2023 dorkbox, llc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ import java.lang.annotation.Target; *
* Loading arguments is left for the end-user application. Using an annotation detector to load/save properties is recommended. *
- * For example (if implemented): -Ddorkbox.Args.Debug=true + * For example (if implemented): -DmyApp.enable_debug=true */ @Retention(value = RetentionPolicy.RUNTIME) @Target(value = {ElementType.FIELD}) @@ -38,4 +38,9 @@ public * This is used to mark a unique value for the property, in case the object name is used elsewhere, is generic, or is repeated. */ String alias() default ""; + + /** + * This is used to set a description of the property, where it's defined. + */ + String description() default ""; }