#1738 - Refactor toArray() plus various

This commit is contained in:
rob bygrave
2019-06-29 00:40:16 +12:00
parent 7fa5e2aa8c
commit ddf200ffdd
33 changed files with 50 additions and 53 deletions
@@ -115,10 +115,10 @@ public class BindParams implements Serializable {
* Return a Natural Key bind param if supported.
*/
public NaturalKeyBindParam getNaturalKeyBindParam() {
if (positionedParameters != null) {
if (!positionedParameters.isEmpty()) {
return null;
}
if (namedParameters != null && namedParameters.size() == 1) {
if (namedParameters.size() == 1) {
Entry<String, Param> e = namedParameters.entrySet().iterator().next();
return new NaturalKeyBindParam(e.getKey(), e.getValue().getInValue());
}