Skip to content

Remove unnecessary toString() call. #1172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ public String toString() {
String.format("%s = %s", column.toSql(IdentifierProcessing.NONE), o instanceof Number ? o : "'" + o + "'"));
});

return "SET " + joiner.toString();
return "SET " + joiner;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ public String toString() {
return ((Aliased) table).getAlias() + ".*";
}

return table.toString() + ".*";
return table + ".*";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ public Between not() {

@Override
public String toString() {
return column.toString() + " BETWEEN " + begin.toString() + " AND " + end.toString();
return column + " BETWEEN " + begin + " AND " + end;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ public Like not() {

@Override
public String toString() {
return left.toString() + " LIKE " + right.toString();
return left + " LIKE " + right;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ public NullHandling getNullHandling() {
*/
@Override
public String toString() {
return direction != null ? expression.toString() + " " + direction : expression.toString();
return direction != null ? expression + " " + direction : expression.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ public String getPredicate() {
*/
@Override
public String toString() {
return expression.toString() + " " + comparator + " " + predicate;
return expression + " " + comparator + " " + predicate;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public class Where extends AbstractSegment {
*/
@Override
public String toString() {
return "WHERE " + condition.toString();
return "WHERE " + condition;
}
}