Remove unnecessary toString() call.

There were few explicit `toString()` calls that are not needed, since `toString()` will be called by default.

Original pull request #1172
This commit is contained in:
Diego Krupitza
2022-02-17 16:03:17 +01:00
committed by Jens Schauder
parent b7afc380e1
commit 9554fdfe48
7 changed files with 7 additions and 7 deletions

View File

@@ -122,6 +122,6 @@ public class Update {
String.format("%s = %s", column.toSql(IdentifierProcessing.NONE), o instanceof Number ? o : "'" + o + "'"));
});
return "SET " + joiner.toString();
return "SET " + joiner;
}
}

View File

@@ -55,6 +55,6 @@ public class AsteriskFromTable extends AbstractSegment implements Expression {
return ((Aliased) table).getAlias() + ".*";
}
return table.toString() + ".*";
return table + ".*";
}
}

View File

@@ -91,6 +91,6 @@ public class Between extends AbstractSegment implements Condition {
@Override
public String toString() {
return column.toString() + " BETWEEN " + begin.toString() + " AND " + end.toString();
return column + " BETWEEN " + begin + " AND " + end;
}
}

View File

@@ -80,6 +80,6 @@ public class Like extends AbstractSegment implements Condition {
@Override
public String toString() {
return left.toString() + " LIKE " + right.toString();
return left + " LIKE " + right;
}
}

View File

@@ -115,6 +115,6 @@ public class OrderByField extends AbstractSegment {
*/
@Override
public String toString() {
return direction != null ? expression.toString() + " " + direction : expression.toString();
return direction != null ? expression + " " + direction : expression.toString();
}
}

View File

@@ -75,6 +75,6 @@ public class SimpleCondition extends AbstractSegment implements Condition {
*/
@Override
public String toString() {
return expression.toString() + " " + comparator + " " + predicate;
return expression + " " + comparator + " " + predicate;
}
}

View File

@@ -38,6 +38,6 @@ public class Where extends AbstractSegment {
*/
@Override
public String toString() {
return "WHERE " + condition.toString();
return "WHERE " + condition;
}
}