From a632fbfad0ddbe8b343c6abe8e28dc41e3df9b7e Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 10 Jul 2015 10:16:25 +0000
Subject: [PATCH] Code cleanup
---
opendj-server-legacy/src/test/java/org/opends/server/plugins/UniqueAttributePluginTestCase.java | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/plugins/UniqueAttributePluginTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/plugins/UniqueAttributePluginTestCase.java
index 9fb3100..39b059f 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/plugins/UniqueAttributePluginTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/plugins/UniqueAttributePluginTestCase.java
@@ -815,21 +815,8 @@
Attributes.create(attrName, attrValues)));
}
- /**
- * Return the attribute type corresponding to the attribute type string.
- *
- * @param attrTypeString The attribute type string name.
- *
- * @return An attribute type object pertaining to the string.
- */
private AttributeType getAttrType(String attrTypeString) {
- AttributeType attrType =
- DirectoryServer.getAttributeType(attrTypeString);
- if (attrType == null)
- {
- attrType = DirectoryServer.getDefaultAttributeType(attrTypeString);
- }
- return attrType;
+ return DirectoryServer.getAttributeType(attrTypeString, true);
}
/**
--
Gitblit v1.10.0