Boxing Fixed
7c7 | |
< private static volatile Double sensorValue; | |
--- | |
> private static volatile double sensorValue = Double.NaN; | |
15,16c15,16 | |
< private static void processSensorValue(Double value) { | |
< if(value != null) { | |
--- | |
> private static void processSensorValue(double value) { | |
> if(!Double.isNaN(value)) { | |
33c33 | |
< Thread sensorReader = new Thread(Boxing::readSensor); | |
--- | |
> Thread sensorReader = new Thread(FixedBoxing::readSensor); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment