Inclusive fix: Replace sanity to validation in java/sdk.go

Bug: b/161896447
Test: "lunch 1" and "m nothing"
Change-Id: I8cbdec02dccd961a8cac92c6e957aeebd1e263c1
This commit is contained in:
Patrice Arruda
2020-07-28 18:30:44 +00:00
parent 8ffde8c9d5
commit b481b87104

View File

@@ -214,7 +214,7 @@ func (s sdkSpec) usePrebuilt(ctx android.EarlyModuleContext) bool {
// "current" can be built from source and be from prebuilt SDK
return ctx.Config().UnbundledBuildUsePrebuiltSdks()
} else if s.version.isNumbered() {
// sanity check
// validation check
if s.kind != sdkPublic && s.kind != sdkSystem && s.kind != sdkTest {
panic(fmt.Errorf("prebuilt SDK is not not available for sdkKind=%q", s.kind))
return false