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

Jean-Noel Rouvignac
16.57.2015 a41662c1136b2bb4a4198df89e0e87d2be3ef099
opendj-server-legacy/src/main/java/org/opends/server/backends/jeb/JebFormat.java
@@ -85,7 +85,7 @@
    for (int i = start; i < end; i++)
    {
      v <<= 8;
      v |= (bytes[i] & 0xFF);
      v |= bytes[i] & 0xFF;
    }
    return v;
  }
@@ -108,11 +108,11 @@
    if(bytes.length == 8)
    {
      long v = 0;
      v |= (bytes[0] & 0x7F);
      v |= bytes[0] & 0x7F;
      for (int i = 1; i < 8; i++)
      {
        v <<= 8;
        v |= (bytes[i] & 0xFF);
        v |= bytes[i] & 0xFF;
      }
      return v;
    }
@@ -145,7 +145,7 @@
      v |= (decodedBytes[pos++] & 0xFFL) << 24;
      v |= (decodedBytes[pos++] & 0xFFL) << 16;
      v |= (decodedBytes[pos++] & 0xFFL) << 8;
      v |= (decodedBytes[pos++] & 0xFFL);
      v |= decodedBytes[pos++] & 0xFFL;
      entryIDList[i] = v;
    }
@@ -169,7 +169,7 @@
      v |= (decodedBytes[pos++] & 0xFFL) << 24;
      v |= (decodedBytes[pos++] & 0xFFL) << 16;
      v |= (decodedBytes[pos++] & 0xFFL) << 8;
      v |= (decodedBytes[pos++] & 0xFFL);
      v |= decodedBytes[pos++] & 0xFFL;
      entryIDList[i] = v;
    }