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:
committed by
Jens Schauder
parent
b7afc380e1
commit
9554fdfe48
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,6 +55,6 @@ public class AsteriskFromTable extends AbstractSegment implements Expression {
|
||||
return ((Aliased) table).getAlias() + ".*";
|
||||
}
|
||||
|
||||
return table.toString() + ".*";
|
||||
return table + ".*";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,6 +75,6 @@ public class SimpleCondition extends AbstractSegment implements Condition {
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return expression.toString() + " " + comparator + " " + predicate;
|
||||
return expression + " " + comparator + " " + predicate;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,6 +38,6 @@ public class Where extends AbstractSegment {
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return "WHERE " + condition.toString();
|
||||
return "WHERE " + condition;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user