Use System.getProperty("line.separator") instead of \n

This commit is contained in:
chimp1984 2020-10-31 13:53:10 -05:00
parent 0847ddd7bf
commit d789282b35
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -157,7 +157,7 @@ public class GetInventoryRequestHandler implements MessageListener {
Filter filter = filterManager.getFilter();
if (filter != null) {
inventory.put(InventoryItem.filteredSeeds, Joiner.on(",\n").join(filter.getSeedNodes()));
inventory.put(InventoryItem.filteredSeeds, Joiner.on("," + System.getProperty("line.separator")).join(filter.getSeedNodes()));
}
log.info("Send inventory {} to {}", inventory, connection.getPeersNodeAddressOptional());