Skip to content

Commit

Permalink
#306: remove unused imports and internal variables from JsonRpcServer
Browse files Browse the repository at this point in the history
Removed @SuppressWarnings from top-level place on top of the class.
Currently only two handle() methods are shown as unused,
but these are public API methods, which meant to be called by the clients.


Signed-off-by: cyb3r4nt <[email protected]>
  • Loading branch information
cyb3r4nt committed Jan 19, 2023
1 parent 59107e8 commit 8e0beff
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/com/googlecode/jsonrpc4j/JsonRpcServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,14 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;

/**
* A JSON-RPC request server reads JSON-RPC requests from an input stream and writes responses to an output stream.
* Supports handler and servlet requests.
*/
@SuppressWarnings("unused")
public class JsonRpcServer extends JsonRpcBasicServer {
private static final Logger logger = LoggerFactory.getLogger(JsonRpcServer.class);

private static final String GZIP = "gzip";
private String contentType = JSONRPC_CONTENT_TYPE;

/**
Expand Down Expand Up @@ -162,7 +158,6 @@ private void handleCommon(CommonHttpServletRequest request, CommonHttpServletRes
}

private int resolveHttpStatusCode(int result) {
int httpStatusCode;
if (this.httpStatusCodeProvider != null) {
return this.httpStatusCodeProvider.getHttpStatusCode(result);
} else {
Expand Down

0 comments on commit 8e0beff

Please sign in to comment.