From b8c43b0c23cd70929e906c574bc88ebc8017c559 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.

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

diff --git a/opendj-sdk/opends/src/server/org/opends/server/plugins/LastModPlugin.java b/opendj-sdk/opends/src/server/org/opends/server/plugins/LastModPlugin.java
index a886a41..c1c7218 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/plugins/LastModPlugin.java
+++ b/opendj-sdk/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