Skip to content

Commit f319d55

Browse files
committed
Fmt
1 parent ac4a80b commit f319d55

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/main/java/dev/morling/onebrc/CreateMeasurements3.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ public static void main(String[] args) throws Exception {
3131
int size = 0;
3232
try {
3333
size = Integer.parseInt(args[0]);
34-
}
35-
catch (NumberFormatException e) {
34+
} catch (NumberFormatException e) {
3635
System.out.println("Invalid value for <number of records to create>");
3736
System.out.println("Usage: create_measurements3.sh <number of records to create> [seed]");
3837
System.exit(1);
@@ -43,8 +42,7 @@ public static void main(String[] args) throws Exception {
4342
if (args.length == 2) {
4443
try {
4544
seed = Long.parseLong(args[1]);
46-
}
47-
catch (NumberFormatException e) {
45+
} catch (NumberFormatException e) {
4846
System.out.println("Invalid value for [seed]");
4947
System.out.println("Usage: CreateMeasurements2 <number of records to create> [seed]");
5048
System.exit(1);
@@ -61,7 +59,7 @@ public static void main(String[] args) throws Exception {
6159
out.write(station.id);
6260
out.write(';');
6361
out.write(Double.toString(Math.round(temp * 10.0) / 10.0));
64-
out.newLine();
62+
out.write('\n');
6563
if (i % 50_000_000 == 0) {
6664
System.out.printf("Wrote %,d measurements in %,d ms%n", i, System.currentTimeMillis() - start);
6765
}

0 commit comments

Comments
 (0)