#1663 Additionally trim the OrmQueryDetail.asString() output removing extra whitespace

This commit is contained in:
rob bygrave
2019-03-29 00:43:32 +13:00
parent 4971db54c8
commit 32b8fd0e26
3 changed files with 8 additions and 5 deletions
@@ -121,7 +121,10 @@ public class OrmQueryDetail implements Serializable {
}
if (fetchPaths != null) {
for (OrmQueryProperties join : fetchPaths.values()) {
join.append(" fetch ", sb);
if (sb.length() > 0) {
sb.append(" ");
}
join.append("fetch ", sb);
}
}
return sb.toString();
@@ -294,7 +294,7 @@ public class OrmQueryProperties implements Serializable {
sb.append(path).append(" ");
}
if (!isEmpty()) {
sb.append("(").append(rawProperties).append(") ");
sb.append("(").append(rawProperties).append(")");
}
return sb.toString();
}