From 109151216f6ba3c0109ff5f8f848c3a37d543a84 Mon Sep 17 00:00:00 2001 From: Glease <4586901+Glease@users.noreply.github.com> Date: Wed, 29 Dec 2021 20:55:23 +0800 Subject: Fix copy pasting error (#78) Former-commit-id: e3ad540439325619fd59374a65a7fd88e089355d --- .../com/github/bartimaeusnek/bartworks/util/CachedReflectionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/util/CachedReflectionUtils.java b/src/main/java/com/github/bartimaeusnek/bartworks/util/CachedReflectionUtils.java index f1276c4d3d..ed9aa6b2e8 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/util/CachedReflectionUtils.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/util/CachedReflectionUtils.java @@ -15,7 +15,7 @@ public class CachedReflectionUtils { } public static Field getDeclaredField(final Class cls, final String fieldName) { - return fields.get(cls).computeIfAbsent(fieldName, f -> FieldUtils.getDeclaredField(cls, f, true)); + return declaredFields.get(cls).computeIfAbsent(fieldName, f -> FieldUtils.getDeclaredField(cls, f, true)); } private static class ConcurrentMapClassValue extends ClassValue> { -- cgit