Skip to content

Commit

Permalink
remove unnecessary toString calls
Browse files Browse the repository at this point in the history
  • Loading branch information
rala72 committed Apr 17, 2021
1 parent 5915050 commit f6aa681
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/rala/math/algebra/matrix/Matrix.java
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ public int hashCode() {

@Override
public String toString() {
return getRows() + " " + getCols() + ": " + getMatrix().entrySet().toString();
return getRows() + " " + getCols() + ": " + getMatrix().entrySet();
}

// endregion
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/rala/math/algebra/vector/Vector.java
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ public int hashCode() {

@Override
public String toString() {
return getSize() + ": " + getVector().entrySet().toString();
return getSize() + ": " + getVector().entrySet();
}

// endregion
Expand Down

0 comments on commit f6aa681

Please sign in to comment.