From 73ce867cbfd5b9ea04b20f43e81837881f23277f Mon Sep 17 00:00:00 2001 From: Roman Leventov Date: Tue, 11 Dec 2018 19:38:13 +0100 Subject: [PATCH 1/2] Update deps --- .../framework/schema/SchemaViolation.java | 3 +- .../recipes/queue/TestDistributedQueue.java | 2 +- curator-x-discovery-server/pom.xml | 37 ++++++++++++ pom.xml | 56 ++++++++++++++----- 4 files changed, 81 insertions(+), 17 deletions(-) diff --git a/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaViolation.java b/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaViolation.java index 3f8f1d974c..7ae078383d 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaViolation.java +++ b/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaViolation.java @@ -18,7 +18,6 @@ */ package org.apache.curator.framework.schema; -import com.google.common.base.Objects; import com.google.common.collect.ImmutableList; import org.apache.zookeeper.data.ACL; import java.util.Arrays; @@ -148,6 +147,6 @@ public String toString() private static String toString(Schema schema, String violation, ViolatorData violatorData) { - return Objects.firstNonNull(violation, "") + " " + schema + " " + violatorData; + return (violation != null ? violation : "") + " " + schema + " " + violatorData; } } diff --git a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestDistributedQueue.java b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestDistributedQueue.java index 2f0f9a8c4b..971b1eccb3 100644 --- a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestDistributedQueue.java +++ b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestDistributedQueue.java @@ -705,7 +705,7 @@ public void testFlush() throws Exception try { final AtomicBoolean firstTime = new AtomicBoolean(true); - queue = new DistributedQueue(client, null, serializer, "/test", new ThreadFactoryBuilder().build(), MoreExecutors.sameThreadExecutor(), 10, true, null, QueueBuilder.NOT_SET, true, 0) + queue = new DistributedQueue(client, null, serializer, "/test", new ThreadFactoryBuilder().build(), MoreExecutors.directExecutor(), 10, true, null, QueueBuilder.NOT_SET, true, 0) { @Override void internalCreateNode(final String path, final byte[] bytes, final BackgroundCallback callback) throws Exception diff --git a/curator-x-discovery-server/pom.xml b/curator-x-discovery-server/pom.xml index 342e4707b1..6e5329ef6b 100644 --- a/curator-x-discovery-server/pom.xml +++ b/curator-x-discovery-server/pom.xml @@ -127,4 +127,41 @@ + + + + jdk-9-plus + + [1.9,) + + + + + + javax.xml.bind + jaxb-api + test + + + + com.sun.xml.bind + jaxb-core + test + + + + com.sun.xml.bind + jaxb-impl + test + + + + javax.activation + activation + test + + + + diff --git a/pom.xml b/pom.xml index 265beaa675..cfc369415c 100644 --- a/pom.xml +++ b/pom.xml @@ -60,26 +60,31 @@ 3.5.4-beta - 2.9 - 3.2.0 - 2.10.4 + 4.1.0 + 3.0.1 1.8 1.9.0 - 3.20.0-GA + 3.24.1-GA 2.2 1.9.13 - 2.7.3 - 1.18.1 + 2.9.8 + 1.19.4 + 1.1.1 + + 2.2.11 + 1.1.1 6.1.26 1.0.2 - 2.3.0.GA - 20.0 - 6.10 - 0.18.0 - 0.7.0 - 2.4.3 - 1.7.6 + + 2.3.5.Final + 27.0.1-jre + 6.14.3 + 0.23.1 + 1.3.7 + 3.2.1 + 1.7.25 2.8 @@ -431,6 +436,30 @@ ${jsr311-api-version} + + javax.xml.bind + jaxb-api + ${jaxb-version} + + + + com.sun.xml.bind + jaxb-core + ${jaxb-version} + + + + com.sun.xml.bind + jaxb-impl + ${jaxb-version} + + + + javax.activation + activation + ${javax-activation-version} + + org.mortbay.jetty jetty @@ -526,7 +555,6 @@ org.apache.maven.plugins maven-project-info-reports-plugin - ${maven-project-info-reports-plugin-version} From 518ac5666a50070e82073f964b967da2ed65c7ec Mon Sep 17 00:00:00 2001 From: Roman Leventov Date: Wed, 6 Feb 2019 15:14:19 +0700 Subject: [PATCH 2/2] Improve comment --- curator-x-discovery-server/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curator-x-discovery-server/pom.xml b/curator-x-discovery-server/pom.xml index 6e5329ef6b..ef4d5281c2 100644 --- a/curator-x-discovery-server/pom.xml +++ b/curator-x-discovery-server/pom.xml @@ -135,8 +135,8 @@ [1.9,) - + javax.xml.bind