core/src/main/java/com/orientechnologies/orient/core/index/OIndexChangesWrapper.java
@Override
  public OIdentifiable next() {
    if (source.isRebuilding())
      throwRebuildException();

    final OIdentifiable next = delegate.next();

    if (source.getRebuildVersion() != indexRebuildVersion)
      throwRebuildException();

    return next;
  }
@Override
  public OIdentifiable next() {
    if (source.isRebuilding())
      throwRebuildException();

    final OIdentifiable next = delegate.next();

    if (source.getRebuildVersion() != indexRebuildVersion)
      throwRebuildException();

    return next;
  }
@ Override public OIdentifiable next ( ) { if ( source . isRebuilding ( ) ) throwRebuildException ( ) ; final OIdentifiable next = delegate . next ( ) ; if ( source . getRebuildVersion ( ) != indexRebuildVersion ) throwRebuildException ( ) ; return next ; }
{@inheritDoc}
{