Skip to content

Commit 8e0beff

Browse files
committed
#306: remove unused imports and internal variables from JsonRpcServer
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]>
1 parent 59107e8 commit 8e0beff

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,14 @@
1313
import java.io.IOException;
1414
import java.io.InputStream;
1515
import java.io.OutputStream;
16-
import java.util.zip.GZIPInputStream;
17-
import java.util.zip.GZIPOutputStream;
1816

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

27-
private static final String GZIP = "gzip";
2824
private String contentType = JSONRPC_CONTENT_TYPE;
2925

3026
/**
@@ -162,7 +158,6 @@ private void handleCommon(CommonHttpServletRequest request, CommonHttpServletRes
162158
}
163159

164160
private int resolveHttpStatusCode(int result) {
165-
int httpStatusCode;
166161
if (this.httpStatusCodeProvider != null) {
167162
return this.httpStatusCodeProvider.getHttpStatusCode(result);
168163
} else {

0 commit comments

Comments
 (0)