Remove `add_exports` and `add_opens` parameters from `java_common.compile`

PiperOrigin-RevId: 868699430
Change-Id: I10351f8187e4ff0966123e00a99cb6599f8a45ce
diff --git a/java/private/java_common.bzl b/java/private/java_common.bzl
index 8a465c2..3c11c0e 100644
--- a/java/private/java_common.bzl
+++ b/java/private/java_common.bzl
@@ -65,9 +65,7 @@
         sourcepath = [],
         resources = [],
         neverlink = False,
-        enable_annotation_processing = True,
-        add_exports = [],
-        add_opens = []):
+        enable_annotation_processing = True):
     return _compile_internal(
         ctx,
         output = output,
@@ -90,8 +88,6 @@
         resources = resources,
         neverlink = neverlink,
         enable_annotation_processing = enable_annotation_processing,
-        add_exports = add_exports,
-        add_opens = add_opens,
     )
 
 def _run_ijar(actions, jar, java_toolchain, target_label = None):