mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Consistent use of StringUtils.toStringArray
This commit is contained in:
+2
-1
@@ -25,6 +25,7 @@ import org.springframework.beans.NotReadablePropertyException;
|
||||
import org.springframework.beans.PropertyAccessor;
|
||||
import org.springframework.beans.PropertyAccessorFactory;
|
||||
import org.springframework.jdbc.core.StatementCreatorUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
* {@link SqlParameterSource} implementation that obtains parameter values
|
||||
@@ -98,7 +99,7 @@ public class BeanPropertySqlParameterSource extends AbstractSqlParameterSource {
|
||||
names.add(pd.getName());
|
||||
}
|
||||
}
|
||||
this.propertyNames = names.toArray(new String[names.size()]);
|
||||
this.propertyNames = StringUtils.toStringArray(names);
|
||||
}
|
||||
return this.propertyNames;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user