mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
06.54.2013 37ed5de0ba414a5cd097113e57e6e50468000001
DraftCNDbIterator.java:
In next(), got rid of an Exception that should not happen.
1 files modified
13 ■■■■ changed files
opends/src/server/org/opends/server/replication/server/DraftCNDbIterator.java 13 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DraftCNDbIterator.java
@@ -43,7 +43,7 @@
public class DraftCNDbIterator
{
  private static final DebugTracer TRACER = getTracer();
  private DraftCNDBCursor draftCNDbCursor = null;
  private DraftCNDBCursor draftCNDbCursor;
  /**
   * Creates a new ReplicationIterator.
@@ -93,8 +93,7 @@
  {
    try
    {
      ChangeNumber cn = this.draftCNDbCursor.currentChangeNumber();
      return cn;
      return this.draftCNDbCursor.currentChangeNumber();
    }
    catch(Exception e)
    {
@@ -117,14 +116,16 @@
  /**
   * Skip to the next record of the database.
   * @return true if has next, false elsewhere
   * @throws Exception When exception raised.
   * @throws DatabaseException When database exception raised.
   */
  public boolean next()
  throws Exception, DatabaseException
  public boolean next() throws DatabaseException
  {
    if (draftCNDbCursor != null)
  {
    return draftCNDbCursor.next();
  }
    return false;
  }
  /**
   * Release the resources and locks used by this Iterator.