Skip to content

Commit

Permalink
Issue-1216: wrong method signature for multidimensional arrays
Browse files Browse the repository at this point in the history
- fixed formatting
  • Loading branch information
Maximilian Schmidt committed Oct 25, 2018
1 parent bd21fe9 commit 0790224
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "]";
}
}
Expand Down Expand Up @@ -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() + "[]";
}
}
Expand Down

0 comments on commit 0790224

Please sign in to comment.