From a1f030edc5d19b575470f0d79033d9f7471ab172 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 31 Jan 2014 14:49:58 +0000
Subject: [PATCH] Removed now useless calls to .toString() on arguments of ArgN.get(...).

---
 opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/CustomAttributePanel.java |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/CustomAttributePanel.java b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/CustomAttributePanel.java
index 2f63276..c8c374e 100644
--- a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/CustomAttributePanel.java
+++ b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/CustomAttributePanel.java
@@ -991,8 +991,7 @@
         LocalizableMessage elementType = NewAttributePanel.getSchemaElementType(n, schema);
         if (elementType != null)
         {
-          errors.add(ERR_CTRL_PANEL_ATTRIBUTE_NAME_ALREADY_IN_USE.get(n,
-              elementType.toString()));
+          errors.add(ERR_CTRL_PANEL_ATTRIBUTE_NAME_ALREADY_IN_USE.get(n, elementType));
           setPrimaryInvalid(lName);
         }
       }
@@ -1011,8 +1010,7 @@
         LocalizableMessage elementType = NewAttributePanel.getSchemaElementType(n, schema);
         if (elementType != null)
         {
-          errors.add(ERR_CTRL_PANEL_OID_ALREADY_IN_USE.get(n,
-              elementType.toString()));
+          errors.add(ERR_CTRL_PANEL_OID_ALREADY_IN_USE.get(n, elementType));
           setPrimaryInvalid(lOID);
         }
       }
@@ -1047,8 +1045,7 @@
               NewAttributePanel.getSchemaElementType(alias, schema);
             if (elementType != null)
             {
-              errors.add(ERR_CTRL_PANEL_ALIAS_ALREADY_IN_USE.get(n,
-                  elementType.toString()));
+              errors.add(ERR_CTRL_PANEL_ALIAS_ALREADY_IN_USE.get(n, elementType));
               setPrimaryInvalid(lAliases);
             }
           }

--
Gitblit v1.10.0