jnidzwetzki/bitfinex-v2-wss-api-java

View on GitHub
src/main/java/com/github/jnidzwetzki/bitfinex/v2/callback/command/AuthCallback.java

Summary

Maintainability
A
1 hr
Test Coverage

Method jsonToBitfinexApiKeyPermissions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private BitfinexApiKeyPermissions jsonToBitfinexApiKeyPermissions(final JSONObject jsonObject) {
        final JSONObject caps = jsonObject.getJSONObject("caps");
        JSONObject orders = caps.getJSONObject("orders");
        boolean orderReadPermission = orders.getInt("read") == 1;
        boolean orderWritePermission = orders.getInt("write") == 1;

    There are no issues that match your filters.

    Category
    Status