src/main/java/com/github/jnidzwetzki/bitfinex/v2/callback/command/AuthCallback.java
Method jsonToBitfinexApiKeyPermissions
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;