From bb40b9a02cf40af0349d8e3576f51133d264d4b1 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 10 Oct 2006 15:23:18 +0000
Subject: [PATCH] Make all of the plugin result objects immutable, and create a default SUCCESS instance for each of them that may be used if all processing completed successfully.  Update all uses of the plugin result objects to use this SUCCESS instance where applicable.

---
 opends/src/server/org/opends/server/plugins/LastModPlugin.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opends/src/server/org/opends/server/plugins/LastModPlugin.java b/opends/src/server/org/opends/server/plugins/LastModPlugin.java
index a886a41..c1c7218 100644
--- a/opends/src/server/org/opends/server/plugins/LastModPlugin.java
+++ b/opends/src/server/org/opends/server/plugins/LastModPlugin.java
@@ -200,7 +200,7 @@
 
 
     // We shouldn't ever need to return a non-success result.
-    return new PreOperationPluginResult();
+    return PreOperationPluginResult.SUCCESS;
   }
 
 
@@ -275,7 +275,7 @@
 
 
     // We shouldn't ever need to return a non-success result.
-    return new PreOperationPluginResult();
+    return PreOperationPluginResult.SUCCESS;
   }
 
 
@@ -326,7 +326,7 @@
 
 
     // We shouldn't ever need to return a non-success result.
-    return new PreOperationPluginResult();
+    return PreOperationPluginResult.SUCCESS;
   }
 }
 

--
Gitblit v1.10.0