summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-10-17 23:07:36 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-10-17 23:07:36 +0000
commit79de2a5edf067df33ac34b62439442ee85357398 (patch)
tree238974e79294ceb08774ac4f2f8fa54837cdae8f /java/java.go
parentb9ba445856e0a89ea2a6be52b426f7ee727f1599 (diff)
parent64f2d844f27511ffdc062fe77384577d33d62880 (diff)
Merge "Make uses_libs and optional_uses_libs configurable" into main
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go
index 288042b42..8b3026269 100644
--- a/java/java.go
+++ b/java/java.go
@@ -3343,7 +3343,7 @@ func addCLCFromDep(ctx android.ModuleContext, depModule android.Module,
if sdkLib != nil {
optional := false
if module, ok := ctx.Module().(ModuleWithUsesLibrary); ok {
- if android.InList(*sdkLib, module.UsesLibrary().usesLibraryProperties.Optional_uses_libs) {
+ if android.InList(*sdkLib, module.UsesLibrary().usesLibraryProperties.Optional_uses_libs.GetOrDefault(ctx, nil)) {
optional = true
}
}