Consistent use of StringUtils.hasLength(String) vs isEmpty(Object)
This commit is contained in:
@@ -576,7 +576,7 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
|
||||
}
|
||||
|
||||
private String appendSql(@Nullable String sql, String statement) {
|
||||
return (StringUtils.isEmpty(sql) ? statement : sql + "; " + statement);
|
||||
return (StringUtils.hasLength(sql) ? sql + "; " + statement : statement);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user