From 377b2709c64b32fe93905b466482216c2cc0581c Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 19 Mar 2014 16:30:32 +0000
Subject: [PATCH] OPENDJ-1368 (CR-3232) Remove AttributeValue
---
opendj3-server-dev/src/server/org/opends/server/monitors/BackendMonitor.java | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/monitors/BackendMonitor.java b/opendj3-server-dev/src/server/org/opends/server/monitors/BackendMonitor.java
index 4b9c83d..dda49e2 100644
--- a/opendj3-server-dev/src/server/org/opends/server/monitors/BackendMonitor.java
+++ b/opendj3-server-dev/src/server/org/opends/server/monitors/BackendMonitor.java
@@ -157,7 +157,7 @@
DN[] baseDNs = backend.getBaseDNs();
for (DN dn : baseDNs)
{
- builder.add(AttributeValues.create(baseDNType, dn.toString()));
+ builder.add(dn.toString());
}
attrs.add(builder.toAttribute());
@@ -182,8 +182,7 @@
{
logger.traceException(ex);
}
- String s = entryCount + " " + dn.toString();
- builder.add(AttributeValues.create(baseDNEntryCountType, s));
+ builder.add(entryCount + " " + dn.toString());
}
}
else
@@ -191,8 +190,7 @@
// This is done to avoid recalculating the number of entries
// using the numSubordinates method in the case where the
// backend has a single base DN.
- String s = backendCount + " " + baseDNs[0].toString();
- builder.add(AttributeValues.create(baseDNEntryCountType, s));
+ builder.add(backendCount + " " + baseDNs[0].toString());
}
attrs.add(builder.toAttribute());
--
Gitblit v1.10.0