diff options
author | zaaarf <zaaarf@proton.me> | 2023-04-12 15:42:17 +0200 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-04-12 15:42:17 +0200 |
commit | 2c2b24e5b40a48d443b3caf13abe7661284129a3 (patch) | |
tree | 5d175500f52b3b638056ccdf365137a76b0f3166 /src/main/java/ftbsc/lll/processor/annotations | |
parent | 3344fd766f6e7e0e405c3c2b4c02a8b7e05c7e3c (diff) |
feat: @Patch's value field is now mandatory
Diffstat (limited to 'src/main/java/ftbsc/lll/processor/annotations')
-rw-r--r-- | src/main/java/ftbsc/lll/processor/annotations/Find.java | 6 | ||||
-rw-r--r-- | src/main/java/ftbsc/lll/processor/annotations/Patch.java | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/ftbsc/lll/processor/annotations/Find.java b/src/main/java/ftbsc/lll/processor/annotations/Find.java index 8d28671..0d43d33 100644 --- a/src/main/java/ftbsc/lll/processor/annotations/Find.java +++ b/src/main/java/ftbsc/lll/processor/annotations/Find.java @@ -26,9 +26,9 @@ public @interface Find { Class<?> value() default Object.class; /** - * This can be either the fully-qualified name to be used in place of {@link #value()} to - * represent the parent class 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. * For a {@link TypeProxy}, this refers to the class itself rather than the parent. * @return the name of the inner class that contains the target, * defaults to empty string (not an inner class) 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 ""; } |