From 47ee6bc11dfca41041e069aef5f4b7902adf97ad Mon Sep 17 00:00:00 2001 From: Jorge Rego Date: Thu, 8 Sep 2022 18:03:53 +0200 Subject: [PATCH] fix: removed spaces coming from code style auto format. --- .../hummingbird/registry/CryptoCoinInfo.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/sparrowwallet/hummingbird/registry/CryptoCoinInfo.java b/src/main/java/com/sparrowwallet/hummingbird/registry/CryptoCoinInfo.java index f3be53a..cf4dcca 100644 --- a/src/main/java/com/sparrowwallet/hummingbird/registry/CryptoCoinInfo.java +++ b/src/main/java/com/sparrowwallet/hummingbird/registry/CryptoCoinInfo.java @@ -37,10 +37,10 @@ public class CryptoCoinInfo extends RegistryItem { public DataItem toCbor() { Map map = new Map(); - if (type != null) { + if(type != null) { map.put(new UnsignedInteger(TYPE_KEY), new UnsignedInteger(type)); } - if (network != null) { + if(network != null) { map.put(new UnsignedInteger(NETWORK_KEY), new UnsignedInteger(network)); } return map; @@ -55,15 +55,15 @@ public class CryptoCoinInfo extends RegistryItem { Integer type = null; Integer network = null; - Map map = (Map) item; - for (DataItem key : map.getKeys()) { - UnsignedInteger uintKey = (UnsignedInteger) key; + Map map = (Map)item; + for(DataItem key : map.getKeys()) { + UnsignedInteger uintKey = (UnsignedInteger)key; int intKey = uintKey.getValue().intValue(); - if (intKey == TYPE_KEY) { - type = ((UnsignedInteger) map.get(key)).getValue().intValue(); - } else if (intKey == NETWORK_KEY) { - network = ((UnsignedInteger) map.get(key)).getValue().intValue(); + if(intKey == TYPE_KEY) { + type = ((UnsignedInteger)map.get(key)).getValue().intValue(); + } else if(intKey == NETWORK_KEY) { + network = ((UnsignedInteger)map.get(key)).getValue().intValue(); } } @@ -82,7 +82,7 @@ public class CryptoCoinInfo extends RegistryItem { static Type getTypeFromValue(int value) { for (int i = 0; i < Type.values().length; i++) { Type current = Type.values()[i]; - if (value == current.typeValue) { + if(value == current.typeValue) { return current; } }