HHH-14190 Method StringHelper#moveAndToBeginning could benefit from using the improved helper too

This commit is contained in:
Sanne Grinovero 2020-08-26 12:46:12 +01:00
parent 03a1bb5ac8
commit 28787bc013
1 changed files with 1 additions and 1 deletions

View File

@ -624,7 +624,7 @@ public final class StringHelper {
}
public static String moveAndToBeginning(String filter) {
if ( filter.trim().length() > 0 ) {
if ( !isBlank( filter ) ) {
filter += " and ";
if ( filter.startsWith( " and " ) ) {
filter = filter.substring( 4 );