{code:java} protected boolean autoFlushIfRequired(Set querySpaces) throws HibernateException { errorIfClosed(); if ( !isTransactionInProgress() ) { // do not auto-flush while outside a transaction return false; } AutoFlushEvent event = new AutoFlushEvent( querySpaces, this ); listeners( EventType.AUTO_FLUSH ); for ( AutoFlushEventListener listener : listeners( EventType.AUTO_FLUSH ) ) { listener.onAutoFlush( event ); } return event.isFlushRequired(); } {code} the first call to listeners l {code:java} isteners ( EventType.AUTO_FLUSH ); is i {code} s useless and can be removed |
|