fix: Default value to 0.0F instead of null
Šī revīzija ir iekļauta:
vecāks
9c04f6c9fd
revīzija
9c20191206
4 mainīti faili ar 4 papildinājumiem un 4 dzēšanām
|
|
@ -29,7 +29,7 @@ public class Co2SensorController {
|
|||
|
||||
@PostMapping("/")
|
||||
public int addSensor() {
|
||||
sensorValues.put(currentMaxId, null);
|
||||
sensorValues.put(currentMaxId, 0.0F);
|
||||
return currentMaxId++;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public class GazSensorController {
|
|||
|
||||
@PostMapping("/")
|
||||
public int addSensor() {
|
||||
sensorValues.put(currentMaxId, null);
|
||||
sensorValues.put(currentMaxId, 0.0F);
|
||||
return currentMaxId++;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public class LightSensorController {
|
|||
|
||||
@PostMapping("/")
|
||||
public int addSensor() {
|
||||
sensorValues.put(currentMaxId, null);
|
||||
sensorValues.put(currentMaxId, 0.0F);
|
||||
return currentMaxId++;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public class TemperatureSensorController {
|
|||
|
||||
@PostMapping("/")
|
||||
public int addSensor() {
|
||||
sensorValues.put(currentMaxId, null);
|
||||
sensorValues.put(currentMaxId, 0.0F);
|
||||
return currentMaxId++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Notiek ielāde…
Atsaukties uz šo jaunā problēmā