diff --git a/java/sdk.go b/java/sdk.go index 6e67a13cd..5d79d1d85 100644 --- a/java/sdk.go +++ b/java/sdk.go @@ -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