Fix target visibility for `@rules_java//java/common/rules:core_rules`

PiperOrigin-RevId: 673945918
Change-Id: I9e52c5a477805bd5aafe0a2d7ff1add65f77d2b3
diff --git a/java/common/rules/BUILD b/java/common/rules/BUILD
index 33f6eca..ae2cae7 100644
--- a/java/common/rules/BUILD
+++ b/java/common/rules/BUILD
@@ -34,7 +34,7 @@
         "java_toolchain.bzl",
     ],
     visibility = [
-        "//java:__pkg__",
+        "//java:__subpackages__",
     ],
     deps = [
         ":android_lint_bzl",