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/core/SimpleSubtreeSpecification.java | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/SimpleSubtreeSpecification.java b/opends/src/server/org/opends/server/core/SimpleSubtreeSpecification.java
index b548c3d..4cc88d8 100644
--- a/opends/src/server/org/opends/server/core/SimpleSubtreeSpecification.java
+++ b/opends/src/server/org/opends/server/core/SimpleSubtreeSpecification.java
@@ -22,13 +22,10 @@
* CDDL HEADER END
*
*
- * Portions Copyright 2006 Sun Microsystems, Inc.
+ * Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
package org.opends.server.core;
-import static org.opends.server.loggers.Debug.debugConstructor;
-import static org.opends.server.loggers.Debug.debugEnter;
-
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.util.Scanner;
@@ -49,9 +46,6 @@
public abstract class SimpleSubtreeSpecification extends
SubtreeSpecification {
- // Fully qualified class name for debugging purposes.
- private static final String CLASS_NAME = SimpleSubtreeSpecification.class
- .getName();
// The absolute base of the subtree.
private DN baseDN;
@@ -379,7 +373,6 @@
*/
protected SimpleSubtreeSpecification(DN baseDN, int minimumDepth,
int maximumDepth, Iterable<DN> chopBefore, Iterable<DN> chopAfter) {
- assert debugConstructor(CLASS_NAME);
this.baseDN = baseDN;
this.minimumDepth = minimumDepth;
@@ -421,7 +414,6 @@
* otherwise.
*/
protected final boolean isDNWithinScope(DN dn) {
- assert debugEnter(CLASS_NAME, "isDNWithinScope");
if (!dn.isDescendantOf(baseDN)) {
return false;
@@ -473,7 +465,6 @@
* @return Returns the absolute base DN of the subtree specification.
*/
protected final DN getBaseDN() {
- assert debugEnter(CLASS_NAME, "getBaseDN");
return baseDN;
}
@@ -487,7 +478,6 @@
*/
protected final boolean commonComponentsEquals(
SimpleSubtreeSpecification other) {
- assert debugEnter(CLASS_NAME, "commonComponentsEquals");
if (this == other) {
return true;
@@ -526,7 +516,6 @@
* @return The computed hash code.
*/
protected final int commonComponentsHashCode() {
- assert debugEnter(CLASS_NAME, "commonComponentsHashCode");
int hash = minimumDepth * 31 + maximumDepth;
@@ -548,7 +537,6 @@
* <code>null</code> if there are not any.
*/
public final Iterable<DN> getChopAfter() {
- assert debugEnter(CLASS_NAME, "getChopAfter");
if (chopAfter != null) {
return chopAfter.values();
@@ -564,7 +552,6 @@
* <code>null</code> if there are not any.
*/
public final Iterable<DN> getChopBefore() {
- assert debugEnter(CLASS_NAME, "getChopBefore");
if (chopBefore != null) {
return chopBefore.values();
@@ -579,7 +566,6 @@
* @return Returns the maximum depth (<0 indicates unlimited depth).
*/
public final int getMaximumDepth() {
- assert debugEnter(CLASS_NAME, "getMaximumDepth");
return maximumDepth;
}
@@ -589,7 +575,6 @@
* @return Returns the minimum depth (<=0 indicates unlimited depth).
*/
public final int getMinimumDepth() {
- assert debugEnter(CLASS_NAME, "getMinimumDepth");
return minimumDepth;
}
}
--
Gitblit v1.10.0