mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
25.43.2015 f52c6add86d2e2d123cb76a3d8354e31d35523ee
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());
  }
}