730169ae5f7cd0b71093cffaf08e8af0bb218269 |
|
23-Mar-2017 |
Colin Cross <ccross@android.com> |
Fix target type inference issue when compiling with javac javac is unable to determine that the return type of Optional.empty() should be Optional<Float> when called in a lambda inside a hasAtLeast whose return type is inferred from the return value of the function. Work around it by making the type of Optional.empty() explicit. Test: m -j ANDROID_COMPILE_WITH_JACK=false com.android.car.obd2 Change-Id: I1afb868c4b84d99160623c16f8fa53d19c448b05
/packages/services/Car/obd2-lib/src/com/android/car/obd2/commands/FuelGaugePressure.java
|