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

abobrov
31.55.2008 ccff1bc205722a94e386c3cfe44852ab55430886
opends/src/server/org/opends/server/protocols/asn1/ASN1Integer.java
@@ -146,6 +146,7 @@
   * @throws  ASN1Exception  If the provided array is null or is not between one
   *                         and four bytes in length.
   */
  @Override
  public void setValue(byte[] value)
         throws ASN1Exception
  {
@@ -201,6 +202,12 @@
    }
    int intValue = 0;
    if (value[0] < 0)
    {
      intValue = 0xFFFFFFFF;
    }
    for (byte b : value)
    {
      intValue = (intValue << 8) | (b & 0xFF);
@@ -293,6 +300,12 @@
    System.arraycopy(encodedElement, valueStartPos, value, 0, length);
    int intValue = 0;
    if (value[0] < 0)
    {
      intValue = 0xFFFFFFFF;
    }
    for (byte b : value)
    {
      intValue = (intValue << 8) | (b & 0xFF);
@@ -309,6 +322,7 @@
   *
   * @param  buffer  The buffer to which the information should be appended.
   */
  @Override
  public void toString(StringBuilder buffer)
  {
    buffer.append("ASN1Integer(type=");
@@ -329,6 +343,7 @@
   * @param  indent  The number of spaces that should be used to indent the
   *                 resulting string representation.
   */
  @Override
  public void toString(StringBuilder buffer, int indent)
  {
    StringBuilder indentBuf = new StringBuilder(indent);