From 0790224d410c0e74b21e5d628d917e8e084000e4 Mon Sep 17 00:00:00 2001 From: Maximilian Schmidt Date: Thu, 25 Oct 2018 17:58:29 +0200 Subject: [PATCH] Issue-1216: wrong method signature for multidimensional arrays - fixed formatting --- .../src/main/java/org/ethereum/solidity/SolidityType.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() + "[]"; } }