From 9c43e6386d89874721f9e1823cd5bad31d14413f Mon Sep 17 00:00:00 2001 From: Arthur Chern Date: Fri, 8 Jul 2022 10:50:09 +0800 Subject: [PATCH 1/2] chore: fix pmd violations --- ceresdb-protocol/src/main/java/com/ceresdb/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceresdb-protocol/src/main/java/com/ceresdb/Utils.java b/ceresdb-protocol/src/main/java/com/ceresdb/Utils.java index a3bffae..11f0964 100644 --- a/ceresdb-protocol/src/main/java/com/ceresdb/Utils.java +++ b/ceresdb-protocol/src/main/java/com/ceresdb/Utils.java @@ -196,7 +196,7 @@ public static Result toResult(final Storage.WriteResponse resp, // final int failed = resp.getFailed(); if (code == Result.SUCCESS) { - final Set metrics = (rows != null && WriteOk.isCollectWroteDetail()) + final Set metrics = rows != null && WriteOk.isCollectWroteDetail() ? rows.stream() .map(Rows::getMetric) .collect(Collectors.toSet()) From 2358530dd4ea161adf5081a198105558f5a8a880 Mon Sep 17 00:00:00 2001 From: Arthur Chern Date: Sat, 9 Jul 2022 06:47:30 +0800 Subject: [PATCH 2/2] chore: optimize eclipse java dev environment --- .gitignore | 3 +++ ceresdb-http/pom.xml | 1 - ceresdb-rpc/pom.xml | 1 - ceresdb-sql/pom.xml | 1 - pom.xml | 56 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 59 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d1a7d0a..0a53632 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ target # dev tools .idea +.classpath +.project +.settings diff --git a/ceresdb-http/pom.xml b/ceresdb-http/pom.xml index 1995e38..10525ad 100644 --- a/ceresdb-http/pom.xml +++ b/ceresdb-http/pom.xml @@ -38,5 +38,4 @@ gson - diff --git a/ceresdb-rpc/pom.xml b/ceresdb-rpc/pom.xml index c69e07d..7cabea4 100644 --- a/ceresdb-rpc/pom.xml +++ b/ceresdb-rpc/pom.xml @@ -16,5 +16,4 @@ - diff --git a/ceresdb-sql/pom.xml b/ceresdb-sql/pom.xml index 15ba49a..4b2c300 100644 --- a/ceresdb-sql/pom.xml +++ b/ceresdb-sql/pom.xml @@ -38,5 +38,4 @@ test - diff --git a/pom.xml b/pom.xml index 30f2a53..ee5d280 100644 --- a/pom.xml +++ b/pom.xml @@ -244,6 +244,62 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + com.mycila + license-maven-plugin + [3.0,) + + remove + format + + + + + + + + + com.github.ekryd.sortpom + sortpom-maven-plugin + [2.4.0,) + + sort + + + + + + + + + com.googlecode.maven-java-formatter-plugin + maven-java-formatter-plugin + [0.4,) + + format + + + + + + + + + + + + org.apache.maven.plugins