diff --git a/ethereumj-core/src/main/java/org/ethereum/solidity/SolidityType.java b/ethereumj-core/src/main/java/org/ethereum/solidity/SolidityType.java index 74154d67f2..6c2a04d8ca 100644 --- a/ethereumj-core/src/main/java/org/ethereum/solidity/SolidityType.java +++ b/ethereumj-core/src/main/java/org/ethereum/solidity/SolidityType.java @@ -156,11 +156,11 @@ public StaticArrayType(String name) { @Override public String getCanonicalName() { - if(elementType instanceof ArrayType) { + if (elementType instanceof ArrayType) { String elementTypeName = elementType.getCanonicalName(); int idx1 = elementTypeName.indexOf("["); return elementTypeName.substring(0, idx1) + "[" + size + "]" + elementTypeName.substring(idx1); - }else { + } else { return elementType.getCanonicalName() + "[" + size + "]"; } } @@ -199,11 +199,11 @@ public DynamicArrayType(String name) { @Override public String getCanonicalName() { - if(elementType instanceof ArrayType) { + if (elementType instanceof ArrayType) { String elementTypeName = elementType.getCanonicalName(); int idx1 = elementTypeName.indexOf("["); return elementTypeName.substring(0, idx1) + "[]" + elementTypeName.substring(idx1); - }else { + } else { return elementType.getCanonicalName() + "[]"; } }