Skip to content

Commit 7c329be

Browse files
Emil-Gustafssonmslipper
authored andcommitted
JSON-PRC typo fix (#256)
* JSON-PRC typo fix * JSON-PRC typo fix
1 parent 6d08699 commit 7c329be

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/java/com/googlecode/jsonrpc4j/JsonRpcClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private void invoke(String methodName, Object argument, OutputStream output, Str
178178
}
179179

180180
/**
181-
* Reads a JSON-PRC response from the server. This blocks until
181+
* Reads a JSON-RPC response from the server. This blocks until
182182
* a response is received. If an id is given, responses that do
183183
* not correspond, are disregarded.
184184
*
@@ -310,7 +310,7 @@ private void internalWriteRequest(String methodName, Object arguments, OutputStr
310310
private JsonNode readResponseNode(ReadContext context) throws IOException {
311311
context.assertReadable();
312312
JsonNode response = context.nextValue();
313-
logger.debug("JSON-PRC Response: {}", response);
313+
logger.debug("JSON-RPC Response: {}", response);
314314
return response;
315315
}
316316

@@ -504,7 +504,7 @@ public void invokeNotification(String methodName, Object argument, OutputStream
504504
}
505505

506506
/**
507-
* Reads a JSON-PRC response from the server. This blocks until
507+
* Reads a JSON-RPC response from the server. This blocks until
508508
* a response is received.
509509
*
510510
* @param clazz the expected return type
@@ -519,7 +519,7 @@ public <T> T readResponse(Class<T> clazz, InputStream input) throws Throwable {
519519
}
520520

521521
/**
522-
* Reads a JSON-PRC response from the server. This blocks until
522+
* Reads a JSON-RPC response from the server. This blocks until
523523
* a response is received.
524524
*
525525
* @param returnType the expected return type
@@ -532,7 +532,7 @@ public Object readResponse(Type returnType, InputStream input) throws Throwable
532532
}
533533

534534
/**
535-
* Reads a JSON-PRC response from the server. This blocks until
535+
* Reads a JSON-RPC response from the server. This blocks until
536536
* a response is received. If an id is given, responses that do
537537
* not correspond, are disregarded.
538538
*

src/main/java/com/googlecode/jsonrpc4j/JsonRpcHttpAsyncClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ private void writeRequest(String methodName, Object arguments, HttpRequest httpR
295295
request.set(PARAMS, mapper.valueToTree(arguments));
296296
}
297297

298-
logger.debug("JSON-PRC Request: {}", request);
298+
logger.debug("JSON-RPC Request: {}", request);
299299

300300
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(512);
301301
mapper.writeValue(byteArrayOutputStream, request);
@@ -369,7 +369,7 @@ public <T> void invoke(String methodName, Object argument, Class<T> returnType,
369369
}
370370

371371
/**
372-
* Reads a JSON-PRC response from the server. This blocks until a response
372+
* Reads a JSON-RPC response from the server. This blocks until a response
373373
* is received.
374374
*
375375
* @param returnType the expected return type
@@ -379,7 +379,7 @@ public <T> void invoke(String methodName, Object argument, Class<T> returnType,
379379
*/
380380
private <T> T readResponse(Type returnType, InputStream ips) throws Throwable {
381381
JsonNode response = mapper.readTree(new NoCloseInputStream(ips));
382-
logger.debug("JSON-PRC Response: {}", response);
382+
logger.debug("JSON-RPC Response: {}", response);
383383
if (!response.isObject()) {
384384
throw new JsonRpcClientException(0, "Invalid JSON-RPC response", response);
385385
}

0 commit comments

Comments
 (0)