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/backends/jeb/JebFormat.java |   19 +------------------
 1 files changed, 1 insertions(+), 18 deletions(-)

diff --git a/opends/src/server/org/opends/server/backends/jeb/JebFormat.java b/opends/src/server/org/opends/server/backends/jeb/JebFormat.java
index c8b4180..6497f45 100644
--- a/opends/src/server/org/opends/server/backends/jeb/JebFormat.java
+++ b/opends/src/server/org/opends/server/backends/jeb/JebFormat.java
@@ -22,13 +22,11 @@
  * CDDL HEADER END
  *
  *
- *      Portions Copyright 2006 Sun Microsystems, Inc.
+ *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
  */
 package org.opends.server.backends.jeb;
 
 
-import static org.opends.server.loggers.Debug.debugEnter;
-
 import org.opends.server.core.DirectoryServer;
 import org.opends.server.protocols.asn1.ASN1Element;
 import org.opends.server.protocols.asn1.ASN1Exception;
@@ -57,11 +55,6 @@
  */
 public class JebFormat
 {
-  /**
-   * The fully-qualified name of this class for debugging purposes.
-   */
-  private static final String CLASS_NAME =
-       "org.opends.server.backends.je.JebFormat";
 
   /**
    * The format version used by this class to encode and decode a DatabaseEntry.
@@ -92,7 +85,6 @@
   static public byte[] decodeDatabaseEntry(byte[] bytes)
        throws ASN1Exception,DataFormatException
   {
-    assert debugEnter(CLASS_NAME, "decodeDatabaseEntry", String.valueOf(bytes));
 
     // FIXME: This array copy could be very costly on performance. We need to
     // FIXME: find a faster way to implement this versioning feature.
@@ -165,7 +157,6 @@
   static public Entry entryFromDatabase(byte[] bytes)
        throws DirectoryException,ASN1Exception,LDAPException,DataFormatException
   {
-    assert debugEnter(CLASS_NAME, "entryFromDatabase", String.valueOf(bytes));
 
     byte[] uncompressedBytes = decodeDatabaseEntry(bytes);
     return decodeDirectoryServerEntry(uncompressedBytes);
@@ -185,8 +176,6 @@
   static private Entry decodeDirectoryServerEntry(byte[] bytes)
        throws DirectoryException,ASN1Exception,LDAPException
   {
-    assert debugEnter(CLASS_NAME, "decodeDirectoryServerEntry",
-                      String.valueOf(bytes));
 
     HashMap<ObjectClass, String> objectClasses;
     HashMap<AttributeType, List<Attribute>> userAttributes =
@@ -272,8 +261,6 @@
    */
   static public byte[] encodeDatabaseEntry(byte[] bytes, DataConfig dataConfig)
   {
-    assert debugEnter(CLASS_NAME, "encodeDatabaseEntry",
-                      String.valueOf(dataConfig));
 
     int uncompressedSize = 0;
 
@@ -325,8 +312,6 @@
    */
   static public byte[] entryToDatabase(Entry entry, DataConfig dataConfig)
   {
-    assert debugEnter(CLASS_NAME, "entryToDatabase",
-                      String.valueOf(dataConfig));
 
     byte[] uncompressedBytes = encodeDirectoryServerEntry(entry);
     return encodeDatabaseEntry(uncompressedBytes, dataConfig);
@@ -340,7 +325,6 @@
    */
   static public byte[] entryToDatabase(Entry entry)
   {
-    assert debugEnter(CLASS_NAME, "entryToDatabase");
 
     return entryToDatabase(entry, new DataConfig());
   }
@@ -353,7 +337,6 @@
    */
   static private byte[] encodeDirectoryServerEntry(Entry entry)
   {
-    assert debugEnter(CLASS_NAME, "encodeDirectoryServerEntry");
 
     // Encode the DN (LDAPDN).
     ArrayList<ASN1Element> elements = new ArrayList<ASN1Element>(4);

--
Gitblit v1.10.0