From 5f3b3b459fa4e8a402e003de99e30a94d91f1331 Mon Sep 17 00:00:00 2001 From: Ulrik Sandberg Date: Mon, 8 Oct 2007 20:43:51 +0000 Subject: [PATCH] Reviewed javadoc. --- .../DefaultTempEntryRenamingStrategy.java | 16 +++++++--------- ...ifferentSubtreeTempEntryRenamingStrategy.java | 10 ++++------ 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/spring-ldap/src/main/java/org/springframework/ldap/transaction/compensating/support/DefaultTempEntryRenamingStrategy.java b/spring-ldap/src/main/java/org/springframework/ldap/transaction/compensating/support/DefaultTempEntryRenamingStrategy.java index e7d5cb63..3b7bfb20 100644 --- a/spring-ldap/src/main/java/org/springframework/ldap/transaction/compensating/support/DefaultTempEntryRenamingStrategy.java +++ b/spring-ldap/src/main/java/org/springframework/ldap/transaction/compensating/support/DefaultTempEntryRenamingStrategy.java @@ -26,18 +26,18 @@ import org.springframework.ldap.transaction.compensating.TempEntryRenamingStrate /** * Default implementation of {@link TempEntryRenamingStrategy}. This - * implementation simply adds "_temp" to the leftmost (least siginificant part) - * of the name, e.g.:
+ * implementation simply adds "_temp" to the leftmost (least significant part) + * of the name. For example: * - * + *
  * cn=john doe, ou=company1, c=SE
- * 
+ * 
* - * becomes + * becomes: * - * + *
  * cn=john doe_temp, ou=company1, c=SE
- * .
+ * 
*

* Note that using this strategy means that the entry remains in virtually the * same location as where it originally resided. This means that searches later @@ -58,8 +58,6 @@ public class DefaultTempEntryRenamingStrategy implements private String tempSuffix = DEFAULT_TEMP_SUFFIX; /* - * (non-Javadoc) - * * @see org.springframework.ldap.support.transaction.TempEntryRenamingStrategy#getTemporaryName(javax.naming.Name) */ public Name getTemporaryName(Name originalName) { diff --git a/spring-ldap/src/main/java/org/springframework/ldap/transaction/compensating/support/DifferentSubtreeTempEntryRenamingStrategy.java b/spring-ldap/src/main/java/org/springframework/ldap/transaction/compensating/support/DifferentSubtreeTempEntryRenamingStrategy.java index 91c7bf9b..2513d234 100644 --- a/spring-ldap/src/main/java/org/springframework/ldap/transaction/compensating/support/DifferentSubtreeTempEntryRenamingStrategy.java +++ b/spring-ldap/src/main/java/org/springframework/ldap/transaction/compensating/support/DifferentSubtreeTempEntryRenamingStrategy.java @@ -28,10 +28,10 @@ import org.springframework.ldap.transaction.compensating.TempEntryRenamingStrate * A {@link TempEntryRenamingStrategy} that moves the entry to a different * subtree than the original entry. The specified subtree needs to be present in * the LDAP tree; it will not be created and operations using this strategy will - * fail if it is not in place. However, this strategy is preferrable to - * {@link DefaultTempEntryRenamingStrategy}, as it makes it possible to have - * searches have the expected result even though the temporary entry still exits - * until the end of the transaction. + * fail if the destination is not in place. However, this strategy is preferable + * to {@link DefaultTempEntryRenamingStrategy}, as it makes searches have the + * expected result even though the temporary entry still exists during the + * transaction. *

* Example: If the specified subtreeNode is * ou=tempEntries and the originalName is @@ -68,8 +68,6 @@ public class DifferentSubtreeTempEntryRenamingStrategy implements } /* - * (non-Javadoc) - * * @see org.springframework.ldap.support.transaction.TempEntryRenamingStrategy#getTemporaryName(javax.naming.Name) */ public Name getTemporaryName(Name originalName) {