From 58e42cdaa28e32c1225deda4cfeab261d7156496 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 18 May 2015 21:52:13 +0000
Subject: [PATCH] AutoRefactor'ed Use multi-catch

---
 opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java |   48 ++++++++----------------------------------------
 1 files changed, 8 insertions(+), 40 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
index fdaf5d4..5ca5b2b 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java
@@ -1532,17 +1532,9 @@
               entryCache.putEntry(entry, backend, entryID.longValue());
             }
           }
-          catch (StorageRuntimeException StorageRuntimeException)
+          catch (StorageRuntimeException | DirectoryException | CanceledOperationException e)
           {
-            throw StorageRuntimeException;
-          }
-          catch (DirectoryException directoryException)
-          {
-            throw directoryException;
-          }
-          catch (CanceledOperationException coe)
-          {
-            throw coe;
+            throw e;
           }
           catch (Exception e)
           {
@@ -1696,17 +1688,9 @@
                   subordinateEntriesDeleted + 1));
             }
           }
-          catch (StorageRuntimeException StorageRuntimeException)
+          catch (StorageRuntimeException | DirectoryException | CanceledOperationException e)
           {
-            throw StorageRuntimeException;
-          }
-          catch (DirectoryException directoryException)
-          {
-            throw directoryException;
-          }
-          catch (CanceledOperationException coe)
-          {
-            throw coe;
+            throw e;
           }
           catch (Exception e)
           {
@@ -2004,17 +1988,9 @@
               entryCache.putEntry(newEntry, backend, entryID.longValue());
             }
           }
-          catch (StorageRuntimeException StorageRuntimeException)
+          catch (StorageRuntimeException | DirectoryException | CanceledOperationException e)
           {
-            throw StorageRuntimeException;
-          }
-          catch (DirectoryException directoryException)
-          {
-            throw directoryException;
-          }
-          catch (CanceledOperationException coe)
-          {
-            throw coe;
+            throw e;
           }
           catch (Exception e)
           {
@@ -2230,17 +2206,9 @@
               modifyDNOperation.checkIfCanceled(true);
             }
           }
-          catch (StorageRuntimeException StorageRuntimeException)
+          catch (StorageRuntimeException | DirectoryException | CanceledOperationException e)
           {
-            throw StorageRuntimeException;
-          }
-          catch (DirectoryException directoryException)
-          {
-            throw directoryException;
-          }
-          catch (CanceledOperationException coe)
-          {
-            throw coe;
+            throw e;
           }
           catch (Exception e)
           {

--
Gitblit v1.10.0