From f52c6add86d2e2d123cb76a3d8354e31d35523ee Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 25 Feb 2015 13:43:04 +0000
Subject: [PATCH] AutoRefactor: fix String usage

---
 opendj-server-legacy/src/test/java/org/opends/server/plugins/ShortCircuitPlugin.java |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/plugins/ShortCircuitPlugin.java b/opendj-server-legacy/src/test/java/org/opends/server/plugins/ShortCircuitPlugin.java
index ef8c656..e14e5b7 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/plugins/ShortCircuitPlugin.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/plugins/ShortCircuitPlugin.java
@@ -665,7 +665,7 @@
 
     // Check for registered short circuits.
     Integer resultCode = shortCircuits.get(
-         operation.getOperationType().toString() + "/" + section.toLowerCase());
+         operation.getOperationType() + "/" + section.toLowerCase());
     if (resultCode != null)
     {
       return resultCode;
@@ -724,11 +724,9 @@
    * @param section The plugin point the short circuit applies to.
    * @param resultCode The result code to be returned for the short circuit.
    */
-  public static void registerShortCircuit(OperationType operation,
-                                          String section, int resultCode)
+  public static void registerShortCircuit(OperationType operation, String section, int resultCode)
   {
-    shortCircuits.put(operation.toString() + "/" + section.toLowerCase(),
-                      resultCode);
+    shortCircuits.put(operation + "/" + section.toLowerCase(), resultCode);
   }
 
   /**
@@ -736,10 +734,8 @@
    * @param operation The type of operation the short circuit applies to.
    * @param section The plugin point the short circuit applies to.
    */
-  public static void deregisterShortCircuit(OperationType operation,
-                                            String section)
+  public static void deregisterShortCircuit(OperationType operation, String section)
   {
-    shortCircuits.remove(operation.toString() + "/" + section.toLowerCase());
+    shortCircuits.remove(operation + "/" + section.toLowerCase());
   }
 }
-

--
Gitblit v1.10.0