From 440e4c4940a8eed51f8accdaf599e3d4a4b685e7 Mon Sep 17 00:00:00 2001 From: Tony Kurc Date: Sun, 8 Nov 2015 12:27:41 -0500 Subject: [PATCH] NIFI-1106 fixed platform-specific object separator. --- .../java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java b/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java index f0f1630fb3..33951d7c8a 100644 --- a/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java +++ b/nifi-nar-bundles/nifi-avro-bundle/nifi-avro-processors/src/main/java/org/apache/nifi/processors/avro/ConvertAvroToJSON.java @@ -138,7 +138,7 @@ public class ConvertAvroToJSON extends AbstractProcessor { if (containerOption.equals(CONTAINER_ARRAY)) { out.write(','); } else { - out.write(System.lineSeparator().getBytes(StandardCharsets.UTF_8)); + out.write('\n'); } final GenericRecord nextRecord = reader.next(record);