From 31216400c324b43c15b8a9eea6d89604247ebb14 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 03 Feb 2014 12:10:05 +0000
Subject: [PATCH] Removed now useless calls to String.valueOf() on arguments of ArgN.get(...).
---
opendj3-server-dev/src/server/org/opends/server/api/CompressedSchema.java | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/api/CompressedSchema.java b/opendj3-server-dev/src/server/org/opends/server/api/CompressedSchema.java
index b03eb73..e8169e8 100644
--- a/opendj3-server-dev/src/server/org/opends/server/api/CompressedSchema.java
+++ b/opendj3-server-dev/src/server/org/opends/server/api/CompressedSchema.java
@@ -26,8 +26,6 @@
*/
package org.opends.server.api;
-
-
import static org.opends.messages.CoreMessages.*;
import static org.opends.server.util.StaticUtils.toLowerCase;
@@ -44,7 +42,6 @@
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
-import org.forgerock.i18n.LocalizableMessage;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.Attribute;
import org.opends.server.types.AttributeBuilder;
@@ -58,8 +55,6 @@
import org.opends.server.types.DirectoryException;
import org.opends.server.types.ObjectClass;
-
-
/**
* This class provides a utility for interacting with compressed representations
* of schema elements. The default implementation does not persist encoded
@@ -123,10 +118,8 @@
Entry<AttributeType, Set<String>> ad = adDecodeMap.get(id);
if (ad == null)
{
- final LocalizableMessage message = ERR_COMPRESSEDSCHEMA_UNRECOGNIZED_AD_TOKEN
- .get(String.valueOf(id));
throw new DirectoryException(DirectoryServer.getServerErrorResultCode(),
- message);
+ ERR_COMPRESSEDSCHEMA_UNRECOGNIZED_AD_TOKEN.get(id));
}
// Before returning the attribute, make sure that the attribute type is not
@@ -209,10 +202,8 @@
}
else
{
- final LocalizableMessage message = ERR_COMPRESSEDSCHEMA_UNKNOWN_OC_TOKEN.get(String
- .valueOf(id));
throw new DirectoryException(DirectoryServer.getServerErrorResultCode(),
- message);
+ ERR_COMPRESSEDSCHEMA_UNKNOWN_OC_TOKEN.get(id));
}
}
--
Gitblit v1.10.0