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/AddOperationWrapper.java | 85 ++++++++----------------------------------
1 files changed, 17 insertions(+), 68 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/AddOperationWrapper.java b/opends/src/server/org/opends/server/core/AddOperationWrapper.java
index 585f567..d771fa6 100644
--- a/opends/src/server/org/opends/server/core/AddOperationWrapper.java
+++ b/opends/src/server/org/opends/server/core/AddOperationWrapper.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2013 ForgeRock AS
+ * Portions Copyright 2013-2014 ForgeRock AS
*/
package org.opends.server.core;
@@ -31,7 +31,6 @@
import org.opends.server.types.*;
-
/**
* This abstract class wraps/decorates a given add operation.
* This class will be extended by sub-classes to enhance the
@@ -51,108 +50,77 @@
super(add);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void addObjectClass(ObjectClass objectClass, String name)
{
getOperation().addObjectClass(objectClass, name);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void addRawAttribute(RawAttribute rawAttribute)
{
getOperation().addRawAttribute(rawAttribute);
}
- /**
- * {@inheritDoc}
- */
- @Override
- public long getChangeNumber()
- {
- return getOperation().getChangeNumber();
- }
-
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public DN getEntryDN()
{
return getOperation().getEntryDN();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public Map<ObjectClass, String> getObjectClasses()
{
return getOperation().getObjectClasses();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public Map<AttributeType, List<Attribute>> getOperationalAttributes()
{
return getOperation().getOperationalAttributes();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public List<RawAttribute> getRawAttributes()
{
return getOperation().getRawAttributes();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public ByteString getRawEntryDN()
{
return getOperation().getRawEntryDN();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public Map<AttributeType, List<Attribute>> getUserAttributes()
{
return getOperation().getUserAttributes();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void removeAttribute(AttributeType attributeType)
{
getOperation().removeAttribute(attributeType);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void removeObjectClass(ObjectClass objectClass)
{
getOperation().removeObjectClass(objectClass);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setAttribute(AttributeType attributeType,
List<Attribute> attributeList)
@@ -160,54 +128,35 @@
getOperation().setAttribute(attributeType, attributeList);
}
- /**
- * {@inheritDoc}
- */
- @Override
- public void setChangeNumber(long changeNumber)
- {
- getOperation().setChangeNumber(changeNumber);
- }
-
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setRawAttributes(List<RawAttribute> rawAttributes)
{
getOperation().setRawAttributes(rawAttributes);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setRawEntryDN(ByteString rawEntryDN)
{
getOperation().setRawEntryDN(rawEntryDN);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public String toString()
{
return getOperation().toString();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public DN getProxiedAuthorizationDN()
{
return getOperation().getProxiedAuthorizationDN();
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public void setProxiedAuthorizationDN(DN proxiedAuthorizationDN)
{
--
Gitblit v1.10.0