From 9920675f2897ed9fb0f86022627f582e596c7d6f Mon Sep 17 00:00:00 2001 From: shedaniel Date: Mon, 22 Nov 2021 21:49:33 +0800 Subject: Fix merge conflicts --- forge/src/main/java/me/shedaniel/rei/forge/AnnotationUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'forge/src/main/java') diff --git a/forge/src/main/java/me/shedaniel/rei/forge/AnnotationUtils.java b/forge/src/main/java/me/shedaniel/rei/forge/AnnotationUtils.java index f315c20b6..644fd8231 100644 --- a/forge/src/main/java/me/shedaniel/rei/forge/AnnotationUtils.java +++ b/forge/src/main/java/me/shedaniel/rei/forge/AnnotationUtils.java @@ -56,15 +56,15 @@ public class AnnotationUtils { .collect(Collectors.toList()); out: for (ModFileScanData.AnnotationData annotation : data.getAnnotations()) { - if (annotationType.equals(annotation.getAnnotationType())) { + if (annotationType.equals(annotation.annotationType())) { try { - Class clazz = (Class) Class.forName(annotation.getMemberName()); + Class clazz = (Class) Class.forName(annotation.memberName()); if (predicate.test(clazz)) { instances.add(new ImmutableTriple<>(modIds, () -> { try { return clazz.getDeclaredConstructor().newInstance(); } catch (Throwable throwable) { - AnnotationUtils.LOGGER.error("Failed to load plugin: " + annotation.getMemberName(), throwable); + LOGGER.error("Failed to load plugin: " + annotation.memberName(), throwable); return null; } }, clazz)); @@ -76,7 +76,7 @@ public class AnnotationUtils { continue out; t = t.getCause(); } - AnnotationUtils.LOGGER.error("Failed to load plugin: " + annotation.getMemberName(), throwable); + LOGGER.error("Failed to load plugin: " + annotation.memberName(), throwable); } } } -- cgit