Skip to content

Commit

Permalink
Improve array literal formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hajduakos committed Aug 13, 2020
1 parent 5b0822d commit 6820fe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {

allprojects {
group = "hu.bme.mit.inf.theta"
version = "1.6.1"
version = "1.6.2"

apply(from = rootDir.resolve("gradle/shared-with-buildSrc/mirrors.gradle.kts"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ public boolean equals(final Object obj) {

@Override
public String toString() {
final String indexString = String.format("([%s]->%s)", type.getIndexType(), type.getElemType());
return Utils.lispStringBuilder(OPERATOR_LABEL).add(indexString).add("(")
.addAll(elems.stream().map(elem -> String.format("([%s]->%s)", elem.get1(), elem.get2()))).add(")")
.add((String.format("[]->%s", elseElem)))
return Utils.lispStringBuilder(OPERATOR_LABEL)
.addAll(elems.stream().map(elem -> String.format("([%s]->%s)", elem.get1(), elem.get2())))
.add((String.format("([]->%s)", elseElem)))
.toString();
}

Expand Down

0 comments on commit 6820fe5

Please sign in to comment.