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

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1374701

Change-Id: I9ee262036e17e56343a16279d5f8c3da8769861a
This commit is contained in:
Treehugger Robot
2020-07-28 23:54:08 +00:00
committed by Automerger Merge Worker

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