aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/processor/annotations/Patch.java
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-04-12 15:42:17 +0200
committer zaaarf <zaaarf@proton.me>2023-04-12 15:42:17 +0200
commit2c2b24e5b40a48d443b3caf13abe7661284129a3 (patch)
tree5d175500f52b3b638056ccdf365137a76b0f3166 /src/main/java/ftbsc/lll/processor/annotations/Patch.java
parent3344fd766f6e7e0e405c3c2b4c02a8b7e05c7e3c (diff)
feat: @Patch's value field is now mandatory
Diffstat (limited to 'src/main/java/ftbsc/lll/processor/annotations/Patch.java')
-rw-r--r--src/main/java/ftbsc/lll/processor/annotations/Patch.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/ftbsc/lll/processor/annotations/Patch.java b/src/main/java/ftbsc/lll/processor/annotations/Patch.java
index e0472da..f5d2698 100644
--- a/src/main/java/ftbsc/lll/processor/annotations/Patch.java
+++ b/src/main/java/ftbsc/lll/processor/annotations/Patch.java
@@ -17,15 +17,15 @@ public @interface Patch {
/**
* @return the {@link Class} to target for patching
*/
- Class<?> value() default Object.class;
+ Class<?> value();
/**
- * This can be either the fully-qualified name to be used in place of {@link #value()}
- * or an inner class name to append after a $ symbol to the already acquired
- * fully-qualified name.
+ * This is the inner class name to append after a $ symbol to the already acquired
+ * fully-qualified name. If it's a number instead of a valid name, the class will be
+ * treated as an anonymous class, and will therefore be automatically unverified.
* @return the name of the inner class that contains the target,
* defaults to empty string (not an inner class)
* @since 0.5.0
*/
- String className() default "";
+ String innerClass() default "";
}