Skip to content

Commit

Permalink
Add bouncer for ClassInfoComparer#isInternalApi
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed May 3, 2024
1 parent af4b559 commit f6c36b3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> internalAnnotations, InternalAnnotationCheckMode checkMode) {
return isInternalApi(memberInfo, internalAnnotations, checkMode, null);
}

public static boolean isInternalApi(MemberInfo memberInfo, List<String> 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
Expand Down

0 comments on commit f6c36b3

Please sign in to comment.