private boolean somethingMayHaveChanged ( PhaseInterceptorChain pic ) { Iterator < Interceptor < ? extends Message > > it = pic . iterator ( ) ; Interceptor < ? extends Message > last = null ; while ( it . hasNext ( ) ) { Interceptor < ? extends Message > cur = it . next ( ) ; if ( cur == this ) { if ( last instanceof DemoInterceptor ) { return false ; } return true ; } last = cur ; } return true ; }
as we know nothing has changed .