aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/processor/annotations/Target.java
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-04-12 00:38:55 +0200
committer zaaarf <zaaarf@proton.me>2023-04-12 00:38:55 +0200
commit524818a3782e00ea2ffd1aca1e50b1ee18595070 (patch)
treed3874f2ac9f7a2c4df858d33c7fa85b013886729 /src/main/java/ftbsc/lll/processor/annotations/Target.java
parent61fa43fb8d0f09d20687fe95c9caa47d82d354cf (diff)
feat: matching the erasure bridge should be optional
Diffstat (limited to 'src/main/java/ftbsc/lll/processor/annotations/Target.java')
-rw-r--r--src/main/java/ftbsc/lll/processor/annotations/Target.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/processor/annotations/Target.java b/src/main/java/ftbsc/lll/processor/annotations/Target.java
index e1e69f7..d397705 100644
--- a/src/main/java/ftbsc/lll/processor/annotations/Target.java
+++ b/src/main/java/ftbsc/lll/processor/annotations/Target.java
@@ -44,4 +44,12 @@ public @interface Target {
* @since 0.3.0
*/
boolean strict() default true;
+
+ /**
+ * When set to true, tells the processor to match the synthetic "bridge" method
+ * generated by the compiler to handle type erasure.
+ * @return whether the bridge method should be targeted instead of the actual method
+ * @since 0.5.2
+ */
+ boolean bridge() default false;
}