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