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/EntryUUIDPlugin.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java b/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
index 254c026..a8767cd 100644
--- a/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
+++ b/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
@@ -172,7 +172,7 @@
List<Attribute> uuidList = entry.getAttribute(entryUUIDType);
if (uuidList != null)
{
- return new LDIFPluginResult();
+ return LDIFPluginResult.SUCCESS;
}
@@ -193,7 +193,7 @@
// We shouldn't ever need to return a non-success result.
- return new LDIFPluginResult();
+ return LDIFPluginResult.SUCCESS;
}
@@ -217,7 +217,7 @@
List<Attribute> uuidList = operationalAttributes.get(entryUUIDType);
if (uuidList != null)
{
- return new PreOperationPluginResult();
+ return PreOperationPluginResult.SUCCESS;
}
@@ -235,7 +235,7 @@
// Add the attribute to the entry and return.
addOperation.setAttribute(entryUUIDType, uuidList);
- return new PreOperationPluginResult();
+ return PreOperationPluginResult.SUCCESS;
}
}
--
Gitblit v1.10.0