From 98a5df3565beaa1999020a16fcb5338d13d5b50f Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 26 Aug 2014 08:11:29 +0000
Subject: [PATCH] Removed useless getChangeNumber() and setChangeNumber methods from *Operation interfaces. These methods are useless because setChangeNumber() is never set inside production code, so changeNumber is always equal to -1 for all the update operations. In addition it is very unlikely the ChangeNumberIndexer could have computed the changeNumber before a results are sent to a persistent search.
---
opends/src/server/org/opends/server/core/ModifyOperationWrapper.java | 65 ++++++--------------------------
1 files changed, 12 insertions(+), 53 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/ModifyOperationWrapper.java b/opends/src/server/org/opends/server/core/ModifyOperationWrapper.java
index ea9305d..188ff60 100644
--- a/opends/src/server/org/opends/server/core/ModifyOperationWrapper.java
+++ b/opends/src/server/org/opends/server/core/ModifyOperationWrapper.java
@@ -22,16 +22,14 @@
*
*
* Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2011-2013 ForgeRock AS
+ * Portions Copyright 2011-2014 ForgeRock AS
*/
package org.opends.server.core;
-
import java.util.List;
import org.opends.server.types.*;
-
/**
* This abstract class wraps/decorates a given modify operation.
* This class will be extended by sub-classes to enhance the
@@ -51,9 +49,7 @@
super(modify);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void addModification(Modification modification)
throws DirectoryException
@@ -61,107 +57,70 @@
getOperation().addModification(modification);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void addRawModification(RawModification rawModification)
{
getOperation().addRawModification(rawModification);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public DN getEntryDN()
{
return getOperation().getEntryDN();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public List<Modification> getModifications()
{
return getOperation().getModifications();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public ByteString getRawEntryDN()
{
return getOperation().getRawEntryDN();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public List<RawModification> getRawModifications()
{
return getOperation().getRawModifications();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setRawEntryDN(ByteString rawEntryDN)
{
getOperation().setRawEntryDN(rawEntryDN);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setRawModifications(List<RawModification> rawModifications)
{
getOperation().setRawModifications(rawModifications);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public String toString()
{
return getOperation().toString();
}
- /**
- * {@inheritDoc}
- */
- @Override
- public final long getChangeNumber(){
- return getOperation().getChangeNumber();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void setChangeNumber(long changeNumber)
- {
- getOperation().setChangeNumber(changeNumber);
- }
-
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public DN getProxiedAuthorizationDN()
{
return getOperation().getProxiedAuthorizationDN();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setProxiedAuthorizationDN(DN proxiedAuthorizationDN){
getOperation().setProxiedAuthorizationDN(proxiedAuthorizationDN);
--
Gitblit v1.10.0