From 1566999a6ac53b05d637d48a02b8904607f0c208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Tue, 2 Dec 2014 17:51:55 -0800 Subject: [PATCH] update jackson to 2.4.4 --- .../JacksonifiedConnectionFactory.java | 19 ++++++++++++++ pom.xml | 26 ++++++------------- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/extensions/rabbitmq/src/main/java/io/druid/firehose/rabbitmq/JacksonifiedConnectionFactory.java b/extensions/rabbitmq/src/main/java/io/druid/firehose/rabbitmq/JacksonifiedConnectionFactory.java index 28f1d0d14d1..2e9f18cfd92 100644 --- a/extensions/rabbitmq/src/main/java/io/druid/firehose/rabbitmq/JacksonifiedConnectionFactory.java +++ b/extensions/rabbitmq/src/main/java/io/druid/firehose/rabbitmq/JacksonifiedConnectionFactory.java @@ -20,11 +20,16 @@ package io.druid.firehose.rabbitmq; import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.collect.Maps; import com.rabbitmq.client.ConnectionFactory; import com.rabbitmq.client.LongString; +import java.net.URI; +import java.net.URISyntaxException; +import java.security.KeyManagementException; +import java.security.NoSuchAlgorithmException; import java.util.Map; /** @@ -154,6 +159,20 @@ public class JacksonifiedConnectionFactory extends ConnectionFactory return uri; } + // we are only overriding this to help Jackson not be confused about the two setURI methods + @JsonIgnore + @Override + public void setUri(URI uri) throws URISyntaxException, NoSuchAlgorithmException, KeyManagementException + { + super.setUri(uri); + } + + @Override + public void setUri(String uriString) throws URISyntaxException, NoSuchAlgorithmException, KeyManagementException + { + super.setUri(uriString); + } + @Override @JsonProperty public int getRequestedChannelMax() diff --git a/pom.xml b/pom.xml index 7562dee7406..660e18cda0d 100644 --- a/pom.xml +++ b/pom.xml @@ -223,52 +223,42 @@ com.fasterxml.jackson.core jackson-annotations - 2.2.3 + 2.4.4 com.fasterxml.jackson.core jackson-core - 2.2.3 + 2.4.4 com.fasterxml.jackson.core jackson-databind - 2.2.3 + 2.4.4 com.fasterxml.jackson.datatype jackson-datatype-guava - 2.2.3 + 2.4.4 com.fasterxml.jackson.datatype jackson-datatype-joda - 2.2.3 + 2.4.4 com.fasterxml.jackson.dataformat jackson-dataformat-smile - 2.2.3 + 2.4.4 com.fasterxml.jackson.jaxrs jackson-jaxrs-json-provider - 2.2.3 + 2.4.4 com.fasterxml.jackson.jaxrs jackson-jaxrs-smile-provider - 2.2.3 - - - org.codehaus.jackson - jackson-core-asl - 1.9.13 - - - org.codehaus.jackson - jackson-mapper-asl - 1.9.13 + 2.4.4 org.hibernate