From f6f67fe1cb1f1f08c392de2e4565ec1a89dd182a Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 15 Oct 2015 19:38:35 +0000
Subject: [PATCH] Remove unnecessary calls to DirectoryServer.getAttributeTypeOrDefault(String).
---
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestLDAPConnectionHandler.java | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestLDAPConnectionHandler.java b/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestLDAPConnectionHandler.java
index 082e265..7b21726 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestLDAPConnectionHandler.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestLDAPConnectionHandler.java
@@ -121,9 +121,7 @@
//Reset some things for the SSL handler
Attribute useSSL=Attributes.create(ATTR_USE_SSL, String.valueOf(false));
Attribute startTls=Attributes.create(ATTR_ALLOW_STARTTLS, String.valueOf(false));
- AttributeType attrType=DirectoryServer.getAttributeTypeOrDefault(ATTR_LISTEN_PORT);
- Attribute a=Attributes.empty(attrType);
- LDAPHandlerEntry.removeAttribute(a, null);
+ LDAPHandlerEntry.removeAttribute(Attributes.empty(ATTR_LISTEN_PORT), null);
LDAPHandlerEntry.removeAttribute(useSSL, null);
LDAPHandlerEntry.removeAttribute(startTls, null);
Attribute useSSL1=Attributes.create(ATTR_USE_SSL, String.valueOf(true));
--
Gitblit v1.10.0