diff --git a/src/main/java/net/neoforged/jarcompatibilitychecker/core/ClassInfoComparer.java b/src/main/java/net/neoforged/jarcompatibilitychecker/core/ClassInfoComparer.java index 8d828b3..4a62b4b 100644 --- a/src/main/java/net/neoforged/jarcompatibilitychecker/core/ClassInfoComparer.java +++ b/src/main/java/net/neoforged/jarcompatibilitychecker/core/ClassInfoComparer.java @@ -226,6 +226,10 @@ public static boolean isMadeFinal(boolean checkBinary, int baseAccess, int input return isVisible(checkBinary, baseAccess) && (baseAccess & Opcodes.ACC_FINAL) == 0 && (inputAccess & Opcodes.ACC_FINAL) != 0; } + public static boolean isInternalApi(MemberInfo memberInfo, List internalAnnotations, InternalAnnotationCheckMode checkMode) { + return isInternalApi(memberInfo, internalAnnotations, checkMode, null); + } + public static boolean isInternalApi(MemberInfo memberInfo, List internalAnnotations, InternalAnnotationCheckMode checkMode, @Nullable ClassInfo packageInfo) { if (checkMode == InternalAnnotationCheckMode.ERROR) return false; // Even if internal, we want to handle internal members like normal for ERROR check mode