Skip to content

Commit ff22cba

Browse files
hvadehrarules_java Copybara
authored andcommitted
Stop wrapping JavaInfo into native instances
PiperOrigin-RevId: 716226895 Change-Id: I6315595317d4d1c638f610fb91a932231ed8d48b
1 parent 90aad63 commit ff22cba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/private/java_info.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def merge(
183183
transitive = [p.transitive_native_libraries for p in providers],
184184
),
185185
)
186-
return get_internal_java_common().wrap_java_info(_new_javainfo(**result))
186+
return _new_javainfo(**result)
187187

188188
def to_java_binary_info(java_info, compilation_info):
189189
"""Get a copy of the given JavaInfo with minimal info returned by a java_binary
@@ -518,7 +518,7 @@ def java_info_for_compilation(
518518
compilation_info = None,
519519
annotation_processing = None,
520520
)
521-
return get_internal_java_common().wrap_java_info(_new_javainfo(**result))
521+
return _new_javainfo(**result)
522522

523523
def _validate_provider_list(provider_list, what, expected_provider_type):
524524
get_internal_java_common().check_provider_instances(provider_list, what, expected_provider_type)

0 commit comments

Comments
 (0)