Removed an unnecessary check.
This commit is contained in:
parent
35f27be589
commit
ad7771d489
|
@ -236,7 +236,6 @@ public class QueryParameterBindingsImpl implements QueryParameterBindings {
|
|||
public void verifyParametersBound(boolean reserveFirstParameter) {
|
||||
// verify named parameters bound
|
||||
for ( Map.Entry<QueryParameter, QueryParameterBinding> bindEntry : parameterBindingMap.entrySet() ) {
|
||||
if ( bindEntry.getKey().getPosition() == null ) {
|
||||
if ( !bindEntry.getValue().isBound() ) {
|
||||
if ( bindEntry.getKey().getName() != null ) {
|
||||
throw new QueryException( "Named parameter [" + bindEntry.getKey().getName() + "] not set" );
|
||||
|
@ -246,7 +245,6 @@ public class QueryParameterBindingsImpl implements QueryParameterBindings {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// verify position parameters bound
|
||||
for ( int i = 0; i < positionalParameterBindings.size(); i++ ) {
|
||||
final QueryParameterBinding binding = positionalParameterBindings.get( i );
|
||||
|
|
Loading…
Reference in New Issue