Skip to content

Commit

Permalink
Stop wrapping JavaInfo into native instances
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 716226895
Change-Id: I6315595317d4d1c638f610fb91a932231ed8d48b
  • Loading branch information
hvadehra authored and rules_java Copybara committed Jan 16, 2025
1 parent 90aad63 commit ff22cba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/private/java_info.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def merge(
transitive = [p.transitive_native_libraries for p in providers],
),
)
return get_internal_java_common().wrap_java_info(_new_javainfo(**result))
return _new_javainfo(**result)

def to_java_binary_info(java_info, compilation_info):
"""Get a copy of the given JavaInfo with minimal info returned by a java_binary
Expand Down Expand Up @@ -518,7 +518,7 @@ def java_info_for_compilation(
compilation_info = None,
annotation_processing = None,
)
return get_internal_java_common().wrap_java_info(_new_javainfo(**result))
return _new_javainfo(**result)

def _validate_provider_list(provider_list, what, expected_provider_type):
get_internal_java_common().check_provider_instances(provider_list, what, expected_provider_type)
Expand Down

0 comments on commit ff22cba

Please sign in to comment.