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

Jean-Noel Rouvignac
17.36.2015 9ba707c46e70ec1ee32d2d89c1d951c1df27a117
EntryIDSet.java:
Extracted constants.
1 files modified
9 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java 9 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryIDSet.java
@@ -49,6 +49,8 @@
final class EntryIDSet implements Iterable<EntryID>
{
  private static final ByteSequence NO_KEY = ByteString.valueOf("<none>");
  private static final long[] EMPTY_LONG_ARRAY = new long[0];
  private static final long[] NO_ENTRY_IDS_RANGE = new long[] { 0, 0 };
  /**
   * Interface for EntryIDSet concrete implementations
@@ -280,7 +282,7 @@
      }
      else
      {
        return new long[] { 0, 0 };
        return NO_ENTRY_IDS_RANGE;
      }
    }
@@ -414,15 +416,14 @@
    @Override
    public long[] getRange()
    {
      return new long[] { 0, 0 };
      return NO_ENTRY_IDS_RANGE;
    }
    @Override
    public long[] getIDs()
    {
      return new long[0];
      return EMPTY_LONG_ARRAY;
    }
  }
  /**