Skip to content

Commit 5a10abd

Browse files
committed
Mention dependency management in JacksonJsonRpcMapper
(cherry picked from commit cfdae67)
1 parent e6731d6 commit 5a10abd

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/main/java/com/rabbitmq/tools/jsonrpc/JacksonJsonRpcMapper.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2018 Pivotal Software, Inc. All rights reserved.
1+
// Copyright (c) 2018-2019 Pivotal Software, Inc. All rights reserved.
22
//
33
// This software, the RabbitMQ Java client library, is triple-licensed under the
44
// Mozilla Public License 1.1 ("MPL"), the GNU General Public License version 2
@@ -15,11 +15,7 @@
1515

1616
package com.rabbitmq.tools.jsonrpc;
1717

18-
import com.fasterxml.jackson.core.JsonFactory;
19-
import com.fasterxml.jackson.core.JsonParser;
20-
import com.fasterxml.jackson.core.JsonProcessingException;
21-
import com.fasterxml.jackson.core.JsonToken;
22-
import com.fasterxml.jackson.core.TreeNode;
18+
import com.fasterxml.jackson.core.*;
2319
import com.fasterxml.jackson.databind.MappingJsonFactory;
2420
import com.fasterxml.jackson.databind.ObjectMapper;
2521
import com.fasterxml.jackson.databind.node.ValueNode;
@@ -34,7 +30,14 @@
3430

3531
/**
3632
* {@link JsonRpcMapper} based on Jackson.
37-
* Uses the streaming and databind modules.
33+
* <p>
34+
* Uses the streaming and databind modules. You need to add the appropriate dependency
35+
* to the classpath if you want to use this class, as the RabbitMQ Java client
36+
* library does not pull Jackson automatically when using a dependency management
37+
* tool like Maven or Gradle.
38+
* <p>
39+
* Make sure to use the latest version of the Jackson library, as the version used in the
40+
* RabbitMQ Java client can be a little bit behind.
3841
*
3942
* @see JsonRpcMapper
4043
* @since 5.4.0

0 commit comments

Comments
 (0)