From 455897cc245b67d929f409a93cfa7106e835cc1f Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Thu, 01 Mar 2007 03:27:06 +0000
Subject: [PATCH] This removes old debug logging framework method calls that are going to be automatically instrumented by AspectJ. Non instrumented debug method calls are updated to use the new debug framework methods. However, the new debug logging framework is not yet active as the Aspects are not weaved in. After this revision, debug logging will be disabled in the server until the new AOP framework is complete.
---
opends/src/server/org/opends/server/protocols/asn1/ASN1Enumerated.java | 23 +----------------------
1 files changed, 1 insertions(+), 22 deletions(-)
diff --git a/opends/src/server/org/opends/server/protocols/asn1/ASN1Enumerated.java b/opends/src/server/org/opends/server/protocols/asn1/ASN1Enumerated.java
index c75bdf0..6529920 100644
--- a/opends/src/server/org/opends/server/protocols/asn1/ASN1Enumerated.java
+++ b/opends/src/server/org/opends/server/protocols/asn1/ASN1Enumerated.java
@@ -22,13 +22,12 @@
* CDDL HEADER END
*
*
- * Portions Copyright 2006 Sun Microsystems, Inc.
+ * Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
package org.opends.server.protocols.asn1;
-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.*;
@@ -44,11 +43,6 @@
public class ASN1Enumerated
extends ASN1Element
{
- /**
- * The fully-qualified name of this class for debugging purposes.
- */
- private static final String CLASS_NAME =
- "org.opends.server.protocols.asn1.ASN1Enumerated";
@@ -78,7 +72,6 @@
{
super(UNIVERSAL_ENUMERATED_TYPE, encodeValue(intValue));
- assert debugConstructor(CLASS_NAME, String.valueOf(intValue));
this.intValue = intValue;
}
@@ -95,8 +88,6 @@
{
super(type, encodeValue(intValue));
- assert debugConstructor(CLASS_NAME, byteToHex(type),
- String.valueOf(intValue));
this.intValue = intValue;
}
@@ -114,8 +105,6 @@
{
super(type, value);
- assert debugConstructor(CLASS_NAME, byteToHex(type), bytesToHex(value),
- String.valueOf(intValue));
this.intValue = intValue;
}
@@ -129,7 +118,6 @@
*/
public int intValue()
{
- assert debugEnter(CLASS_NAME, "intValue");
return intValue;
}
@@ -143,7 +131,6 @@
*/
public void setValue(int intValue)
{
- assert debugEnter(CLASS_NAME, "setValue", String.valueOf(intValue));
this.intValue = intValue;
setValueInternal(encodeValue(intValue));
@@ -162,7 +149,6 @@
public void setValue(byte[] value)
throws ASN1Exception
{
- assert debugEnter(CLASS_NAME, "setValue", bytesToHex(value));
if (value == null)
{
@@ -202,8 +188,6 @@
public static ASN1Enumerated decodeAsEnumerated(ASN1Element element)
throws ASN1Exception
{
- assert debugEnter(CLASS_NAME, "decodeAsEnumerated",
- String.valueOf(element));
if (element == null)
{
@@ -245,8 +229,6 @@
public static ASN1Enumerated decodeAsEnumerated(byte[] encodedElement)
throws ASN1Exception
{
- assert debugEnter(CLASS_NAME, "decodeAsEnumerated",
- bytesToHex(encodedElement));
// First make sure that the array is not null and long enough to contain
// a valid ASN.1 enumerated element.
@@ -338,7 +320,6 @@
*/
public void toString(StringBuilder buffer)
{
- assert debugEnter(CLASS_NAME, "toString", "java.lang.StringBuilder");
buffer.append("ASN1Enumerated(type=");
buffer.append(byteToHex(getType()));
@@ -360,8 +341,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++)
--
Gitblit v1.10.0