summaryrefslogtreecommitdiff
path: root/src/main/java/foo/zaaarf/routecompass/RouteCompass.java
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2024-01-23 11:20:29 +0100
committer zaaarf <me@zaaarf.foo>2024-01-23 11:20:29 +0100
commitb7ea0fdd817f8ab31b983d2307edcc2ddbe09dcb (patch)
treee7e89ee924a35ace91b39f6b4867d6438c1da773 /src/main/java/foo/zaaarf/routecompass/RouteCompass.java
parent47b45e2e42241c59011276572181c6efd016a378 (diff)
fix: annotation fields are actually methods
Diffstat (limited to 'src/main/java/foo/zaaarf/routecompass/RouteCompass.java')
-rw-r--r--src/main/java/foo/zaaarf/routecompass/RouteCompass.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/foo/zaaarf/routecompass/RouteCompass.java b/src/main/java/foo/zaaarf/routecompass/RouteCompass.java
index 58c0d89..a1375e3 100644
--- a/src/main/java/foo/zaaarf/routecompass/RouteCompass.java
+++ b/src/main/java/foo/zaaarf/routecompass/RouteCompass.java
@@ -288,7 +288,7 @@ public class RouteCompass extends AbstractProcessor {
T result = null;
for(String fieldName : fieldNames) {
- result = (T) annClass.getField(fieldName).get(element.getAnnotation(annClass));
+ result = (T) annClass.getMethod(fieldName).invoke(element.getAnnotation(annClass));
if(result != null) return result;
}