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

boli
01.27.2007 455897cc245b67d929f409a93cfa7106e835cc1f
opends/src/server/org/opends/server/protocols/asn1/ASN1Sequence.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Portions Copyright 2006 Sun Microsystems, Inc.
 *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
 */
package org.opends.server.protocols.asn1;
@@ -31,7 +31,6 @@
import java.util.ArrayList;
import java.util.Iterator;
import static org.opends.server.loggers.Debug.*;
import static org.opends.server.messages.MessageHandler.*;
import static org.opends.server.messages.ProtocolMessages.*;
import static org.opends.server.protocols.asn1.ASN1Constants.*;
@@ -47,11 +46,6 @@
public class ASN1Sequence
       extends ASN1Element
{
  /**
   * The fully-qualified name of this class for debugging purposes.
   */
  private static final String CLASS_NAME =
       "org.opends.server.protocols.asn1.ASN1Sequence";
@@ -78,7 +72,6 @@
  {
    super(UNIVERSAL_SEQUENCE_TYPE);
    assert debugConstructor(CLASS_NAME);
    this.elements = new ArrayList<ASN1Element>();
  }
@@ -94,7 +87,6 @@
  {
    super(type);
    assert debugConstructor(CLASS_NAME, byteToHex(type));
    this.elements = new ArrayList<ASN1Element>();
  }
@@ -111,7 +103,6 @@
  {
    super(UNIVERSAL_SEQUENCE_TYPE, encodeValue(elements));
    assert debugConstructor(CLASS_NAME, String.valueOf(elements));
    if (elements == null)
    {
@@ -136,8 +127,6 @@
  {
    super(type, encodeValue(elements));
    assert debugConstructor(CLASS_NAME, byteToHex(type),
                            String.valueOf(elements));
    if (elements == null)
    {
@@ -163,8 +152,6 @@
  {
    super(type, value);
    assert debugConstructor(CLASS_NAME, byteToHex(type), bytesToHex(value),
                            String.valueOf(elements));
    if (elements == null)
    {
@@ -186,7 +173,6 @@
   */
  public ArrayList<ASN1Element> elements()
  {
    assert debugEnter(CLASS_NAME, "elements");
    return elements;
  }
@@ -200,7 +186,6 @@
   */
  public void setElements(ArrayList<ASN1Element> elements)
  {
    assert debugEnter(CLASS_NAME, "setValue", String.valueOf(elements));
    if (elements == null)
    {
@@ -227,7 +212,6 @@
  public void setValue(byte[] value)
         throws ASN1Exception
  {
    assert debugEnter(CLASS_NAME, "setValue", bytesToHex(value));
    if (value == null)
    {
@@ -255,7 +239,6 @@
  public static ASN1Sequence decodeAsSequence(ASN1Element element)
         throws ASN1Exception
  {
    assert debugEnter(CLASS_NAME, "decodeAsSequence", String.valueOf(element));
    if (element == null)
    {
@@ -285,8 +268,6 @@
  public static ASN1Sequence decodeAsSequence(byte[] encodedElement)
         throws ASN1Exception
  {
    assert debugEnter(CLASS_NAME, "decodeAsSequence",
                      bytesToHex(encodedElement));
    // First make sure that the array is not null and long enough to contain
    // a valid ASN.1 sequence element.
@@ -371,8 +352,6 @@
  public static ASN1Sequence decodeAsSequence(byte type, byte[] encodedValue)
         throws ASN1Exception
  {
    assert debugEnter(CLASS_NAME, "decodeAsSequence", byteToHex(type),
                      bytesToHex(encodedValue));
    ArrayList<ASN1Element> elements = decodeElements(encodedValue);
    return new ASN1Sequence(type, encodedValue, elements);
@@ -388,7 +367,6 @@
   */
  public void toString(StringBuilder buffer)
  {
    assert debugEnter(CLASS_NAME, "toString", "java.lang.StringBuilder");
    buffer.append("ASN1Sequence(type=");
    buffer.append(byteToHex(getType()));
@@ -423,8 +401,6 @@
   */
  public void toString(StringBuilder buffer, int indent)
  {
    assert debugEnter(CLASS_NAME, "toString", "java.lang.StringBuilder",
                      String.valueOf(indent));
    StringBuilder indentBuf = new StringBuilder(indent);
    for (int i=0 ; i < indent; i++)