Fix spotbugs warning about \n line endings ...

pull/3/head
Bertrik Sikken 2019-05-30 10:36:03 +02:00
rodzic b07b6c29c4
commit f1d7d2efaf
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -67,7 +67,7 @@ public final class Sentence {
// append header, checksum, etc
byte[] bytes = basic.getBytes(StandardCharsets.US_ASCII);
int crcValue = crc16.calculate(bytes, 0xFFFF);
return String.format(Locale.ROOT, "$$%s*%04X\n", basic, crcValue);
return String.format(Locale.ROOT, "$$%s*%04X%n", basic, crcValue);
}
@Override