Implicitly bump up Java target to 1.8
Bug: 320294595 Test: m Change-Id: I693e564c67d17254d68f3a9c16664c1da93b9488
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user