From 390bbd3429cbaf8ef201be112a465270a4c59d13 Mon Sep 17 00:00:00 2001 From: tison Date: Tue, 19 Mar 2024 09:50:33 +0800 Subject: [PATCH] suppress for simple lines Signed-off-by: tison --- .../java/io/greptime/WriteClientTest.java | 96 ++----------------- pom.xml | 1 + 2 files changed, 7 insertions(+), 90 deletions(-) diff --git a/ingester-protocol/src/test/java/io/greptime/WriteClientTest.java b/ingester-protocol/src/test/java/io/greptime/WriteClientTest.java index a29ba22..d4b4271 100644 --- a/ingester-protocol/src/test/java/io/greptime/WriteClientTest.java +++ b/ingester-protocol/src/test/java/io/greptime/WriteClientTest.java @@ -100,96 +100,12 @@ public void testWriteSuccess() throws ExecutionException, InterruptedException { Table table = Table.from(schema); long ts = System.currentTimeMillis(); - Object[] row1 = new Object[] { - "tag1", - ts, - 1, - 2, - 3, - 4L, - 5, - 6, - 7, - 8L, - 0.9F, - 0.10D, - true, - new byte[0], - 13L, - 14L, - 15L, - 16L, - 17L, - 18L, - 19L, - 20L, - 21L, - 22L, - 23, - 24L, - new IntervalMonthDayNano(1, 2, 3), - BigDecimal.valueOf(123.456) - }; - Object[] row2 = new Object[] { - "tag2", - ts, - 1, - 2, - 3, - 4L, - 5, - 6, - 7, - 8L, - 0.9F, - 0.10D, - true, - new byte[0], - 13L, - 14L, - 15L, - 16L, - 17L, - 18L, - 19L, - 20L, - 21L, - 22L, - 23, - 24L, - new IntervalMonthDayNano(4, 5, 6), - BigDecimal.valueOf(123.456) - }; - Object[] row3 = new Object[] { - "tag3", - ts, - 1, - 2, - 3, - 4L, - 5, - 6, - 7, - 8L, - 0.9F, - 0.10D, - true, - new byte[0], - 13L, - 14L, - 15L, - 16L, - 17L, - 18L, - 19L, - 20L, - 21L, - 22L, - 23, - 24L, - new IntervalMonthDayNano(7, 8, 9), - BigDecimal.valueOf(123.456) - }; + // spotless:off + Object[] row1 = new Object[]{"tag1", ts, 1, 2, 3, 4L, 5, 6, 7, 8L, 0.9F, 0.10D, true, new byte[0], 13L, 14L, 15L, 16L, 17L, 18L, 19L, 20L, 21L, 22L, 23, 24L, new IntervalMonthDayNano(1, 2, 3), BigDecimal.valueOf(123.456)}; + Object[] row2 = new Object[]{"tag2", ts, 1, 2, 3, 4L, 5, 6, 7, 8L, 0.9F, 0.10D, true, new byte[0], 13L, 14L, 15L, 16L, 17L, 18L, 19L, 20L, 21L, 22L, 23, 24L, new IntervalMonthDayNano(4, 5, 6), BigDecimal.valueOf(123.456)}; + Object[] row3 = new Object[]{"tag3", ts, 1, 2, 3, 4L, 5, 6, 7, 8L, 0.9F, 0.10D, true, new byte[0], 13L, 14L, 15L, 16L, 17L, 18L, 19L, 20L, 21L, 22L, 23, 24L, new IntervalMonthDayNano(7, 8, 9), BigDecimal.valueOf(123.456)}; + // spotless:on + table.addRow(row1); table.addRow(row2); table.addRow(row3); diff --git a/pom.xml b/pom.xml index b63297c..e40c90b 100644 --- a/pom.xml +++ b/pom.xml @@ -231,6 +231,7 @@ true 4 +