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

This commit is contained in:
Treehugger Robot 2020-07-28 23:39:20 +00:00 committed by Gerrit Code Review
commit 3d8e506c3a

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