File tree 1 file changed +2
-1
lines changed
spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 30
30
import org .springframework .jdbc .InvalidResultSetAccessException ;
31
31
import org .springframework .lang .Nullable ;
32
32
import org .springframework .util .CollectionUtils ;
33
+ import org .springframework .util .StringUtils ;
33
34
34
35
/**
35
36
* The default implementation of Spring's {@link SqlRowSet} interface, wrapping a
@@ -110,7 +111,7 @@ public ResultSetWrappingSqlRowSet(ResultSet resultSet) throws InvalidResultSetAc
110
111
// Also support column names prefixed with table name
111
112
// as in {table_name}.{column.name}.
112
113
String table = rsmd .getTableName (i );
113
- if (table != null && ! table . isEmpty ( )) {
114
+ if (StringUtils . hasLength ( table )) {
114
115
key = table + "." + rsmd .getColumnName (i );
115
116
if (!this .columnLabelMap .containsKey (key )) {
116
117
this .columnLabelMap .put (key , i );
You can’t perform that action at this time.
0 commit comments