summaryrefslogtreecommitdiff
path: root/java/base.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2025-03-04 19:01:28 +0000
committer Yu Liu <yudiliu@google.com> 2025-03-07 23:16:47 +0000
commitef9e63e775493bd73cb28917ad59e6b10e5506b5 (patch)
treeed7e9c2d65f85806a3ababb6bc8a1583465370a2 /java/base.go
parent8840812f9dfa3ba5ceecd75e582836a3c673d54b (diff)
Rename CommonModuleInfoKey to be consistent with others.
Bug: 377723687 Test: Unit tests and compare the ninja and mk files generated. Change-Id: I1ce8bc782666586633ded9cfaf1b9590e3c0efde
Diffstat (limited to 'java/base.go')
-rw-r--r--java/base.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/base.go b/java/base.go
index 0833831fc..19fb2bcf2 100644
--- a/java/base.go
+++ b/java/base.go
@@ -629,7 +629,7 @@ func CheckStableSdkVersion(ctx android.BaseModuleContext, module android.ModuleP
return nil
}
if info.SdkVersion.Kind == android.SdkCorePlatform {
- if useLegacyCorePlatformApi(ctx, android.OtherModuleProviderOrDefault(ctx, module, android.CommonModuleInfoKey).BaseModuleName) {
+ if useLegacyCorePlatformApi(ctx, android.OtherModuleProviderOrDefault(ctx, module, android.CommonModuleInfoProvider).BaseModuleName) {
return fmt.Errorf("non stable SDK %v - uses legacy core platform", info.SdkVersion)
} else {
// Treat stable core platform as stable.