Skip to content

Commit 8137cc9

Browse files
quaffjhoeller
authored andcommitted
Polishing
1 parent 7b16988 commit 8137cc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSet.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import org.springframework.jdbc.InvalidResultSetAccessException;
3131
import org.springframework.lang.Nullable;
3232
import org.springframework.util.CollectionUtils;
33+
import org.springframework.util.StringUtils;
3334

3435
/**
3536
* The default implementation of Spring's {@link SqlRowSet} interface, wrapping a
@@ -110,7 +111,7 @@ public ResultSetWrappingSqlRowSet(ResultSet resultSet) throws InvalidResultSetAc
110111
// Also support column names prefixed with table name
111112
// as in {table_name}.{column.name}.
112113
String table = rsmd.getTableName(i);
113-
if (table != null && !table.isEmpty()) {
114+
if (StringUtils.hasLength(table)) {
114115
key = table + "." + rsmd.getColumnName(i);
115116
if (!this.columnLabelMap.containsKey(key)) {
116117
this.columnLabelMap.put(key, i);

0 commit comments

Comments
 (0)