diff --git a/server/eclipse-project/src/main/java/us/freeandfair/corla/query/ExportQueries.java b/server/eclipse-project/src/main/java/us/freeandfair/corla/query/ExportQueries.java index 48c9b325..c1b3ee8c 100644 --- a/server/eclipse-project/src/main/java/us/freeandfair/corla/query/ExportQueries.java +++ b/server/eclipse-project/src/main/java/us/freeandfair/corla/query/ExportQueries.java @@ -134,9 +134,8 @@ public static void jsonOut(final String query, final OutputStream os) { try { os.write("[".getBytes(StandardCharsets.UTF_8)); - Object[] resultsArr = results.toArray(); - for(Object line : resultsArr) { + for(final Object line : results.toArray()) { try { os.write(line.toString().getBytes(StandardCharsets.UTF_8)); } catch (java.io.IOException e) {