|
55 | 55 | * a {@link JsonRpcMapper}.
|
56 | 56 | *
|
57 | 57 | * @see #call(String, Object[])
|
58 |
| - * @see #call(String[]) |
59 | 58 | * @see JsonRpcMapper
|
60 | 59 | * @see JacksonJsonRpcMapper
|
61 | 60 | */
|
@@ -102,7 +101,15 @@ public JsonRpcClient(Channel channel, String exchange, String routingKey)
|
102 | 101 | /**
|
103 | 102 | * Private API - used by {@link #call(String[])} to ad-hoc convert
|
104 | 103 | * strings into the required data types for a call.
|
| 104 | + * |
| 105 | + * This method is deprecated because it uses homegrown JSON utilities |
| 106 | + * that don't deal correctly with complex types. The {@link JacksonJsonRpcMapper} |
| 107 | + * has been introduced to handle primitive and complex types, as well |
| 108 | + * as primitive wrappers correctly. |
| 109 | + * |
| 110 | + * @deprecated This method will be removed in the next major version |
105 | 111 | */
|
| 112 | + @Deprecated |
106 | 113 | public static Object coerce(String val, String type)
|
107 | 114 | throws NumberFormatException {
|
108 | 115 | if ("bit".equals(type)) {
|
@@ -204,12 +211,19 @@ public <T> T createProxy(Class<T> klass)
|
204 | 211 | * passed through coerce() to attempt to make them the types the
|
205 | 212 | * server is expecting.
|
206 | 213 | *
|
| 214 | + * This method is deprecated because it uses homegrown JSON utilities |
| 215 | + * that don't deal correctly with complex types. The {@link JacksonJsonRpcMapper} |
| 216 | + * has been introduced to handle primitive and complex types, as well |
| 217 | + * as primitive wrappers correctly. |
| 218 | + * |
207 | 219 | * @return the result contained within the reply, if no exception is found
|
208 | 220 | * @throws JsonRpcException if the reply object contained an exception
|
209 | 221 | * @throws NumberFormatException if a coercion failed
|
210 | 222 | * @throws TimeoutException if a response is not received within the timeout specified, if any
|
211 | 223 | * @see #coerce
|
| 224 | + * @deprecated This method will be removed in the next major version |
212 | 225 | */
|
| 226 | + @Deprecated |
213 | 227 | public Object call(String[] args)
|
214 | 228 | throws NumberFormatException, IOException, JsonRpcException, TimeoutException {
|
215 | 229 | if (args.length == 0) {
|
|
0 commit comments