{code:java} public void executeActions() throws HibernateException { if ( !unresolvedInsertions.isEmpty() ) { throw new IllegalStateException( "About to execute actions, but there are unresolved entity insert actions." ); }
for ( ExecutableList<?> l : executableLists ) { if(!l.isEmpty()) { executeActions( l ); } } } {code} calls {code:java} executeActions(l) {code}
without checking if the {code:java} list l {code} is empty causing the execution of unnecessary operations.
|