mirror of
https://github.com/sparrowwallet/hummingbird.git
synced 2024-11-02 18:46:45 +00:00
fix: removed spaces coming from code style auto format.
This commit is contained in:
parent
de6794e9b2
commit
47ee6bc11d
1 changed files with 10 additions and 10 deletions
|
@ -37,10 +37,10 @@ public class CryptoCoinInfo extends RegistryItem {
|
||||||
|
|
||||||
public DataItem toCbor() {
|
public DataItem toCbor() {
|
||||||
Map map = new Map();
|
Map map = new Map();
|
||||||
if (type != null) {
|
if(type != null) {
|
||||||
map.put(new UnsignedInteger(TYPE_KEY), new UnsignedInteger(type));
|
map.put(new UnsignedInteger(TYPE_KEY), new UnsignedInteger(type));
|
||||||
}
|
}
|
||||||
if (network != null) {
|
if(network != null) {
|
||||||
map.put(new UnsignedInteger(NETWORK_KEY), new UnsignedInteger(network));
|
map.put(new UnsignedInteger(NETWORK_KEY), new UnsignedInteger(network));
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
|
@ -55,15 +55,15 @@ public class CryptoCoinInfo extends RegistryItem {
|
||||||
Integer type = null;
|
Integer type = null;
|
||||||
Integer network = null;
|
Integer network = null;
|
||||||
|
|
||||||
Map map = (Map) item;
|
Map map = (Map)item;
|
||||||
for (DataItem key : map.getKeys()) {
|
for(DataItem key : map.getKeys()) {
|
||||||
UnsignedInteger uintKey = (UnsignedInteger) key;
|
UnsignedInteger uintKey = (UnsignedInteger)key;
|
||||||
int intKey = uintKey.getValue().intValue();
|
int intKey = uintKey.getValue().intValue();
|
||||||
|
|
||||||
if (intKey == TYPE_KEY) {
|
if(intKey == TYPE_KEY) {
|
||||||
type = ((UnsignedInteger) map.get(key)).getValue().intValue();
|
type = ((UnsignedInteger)map.get(key)).getValue().intValue();
|
||||||
} else if (intKey == NETWORK_KEY) {
|
} else if(intKey == NETWORK_KEY) {
|
||||||
network = ((UnsignedInteger) map.get(key)).getValue().intValue();
|
network = ((UnsignedInteger)map.get(key)).getValue().intValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ public class CryptoCoinInfo extends RegistryItem {
|
||||||
static Type getTypeFromValue(int value) {
|
static Type getTypeFromValue(int value) {
|
||||||
for (int i = 0; i < Type.values().length; i++) {
|
for (int i = 0; i < Type.values().length; i++) {
|
||||||
Type current = Type.values()[i];
|
Type current = Type.values()[i];
|
||||||
if (value == current.typeValue) {
|
if(value == current.typeValue) {
|
||||||
return current;
|
return current;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue