Implicitly bump up Java target to 1.8

Bug: 320294595
Test: m
Change-Id: I693e564c67d17254d68f3a9c16664c1da93b9488
This commit is contained in:
Sorin Basca
2024-01-15 16:38:46 +00:00
parent 1c4cc3d40e
commit d567a514ee
2 changed files with 13 additions and 9 deletions

View File

@@ -47,9 +47,7 @@ func defaultJavaLanguageVersion(ctx android.EarlyModuleContext, s android.SdkSpe
if err != nil {
ctx.PropertyErrorf("sdk_version", "%s", err)
}
if sdk.FinalOrFutureInt() <= 23 {
return JAVA_VERSION_7
} else if sdk.FinalOrFutureInt() <= 29 {
if sdk.FinalOrFutureInt() <= 29 {
return JAVA_VERSION_8
} else if sdk.FinalOrFutureInt() <= 31 {
return JAVA_VERSION_9