diff options
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 ""; } |