PMD warning fix.

koppelting
Bertrik Sikken 2017-08-25 00:25:21 +02:00
rodzic 6cbe624a73
commit 00b6317156
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -44,7 +44,7 @@ public final class PayloadDecoder {
final Sentence sentence = new Sentence(callSign, id, Date.from(time), latitude, longitude, altitude);
final JsonNode tempNode = fields.get("temp");
final JsonNode vccNode = fields.get("vcc");
if ((tempNode != null) && (vccNode != null)) {
if (tempNode != null && vccNode != null) {
sentence.addField(String.format(Locale.US, "%.1f", tempNode.doubleValue()));
sentence.addField(String.format(Locale.US, "%.3f", vccNode.doubleValue()));
}