From ca669ae54f86dbeea277280690584d9f591c7571 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 18 Feb 2015 07:26:26 +0000
Subject: [PATCH] AutoRefactor: collapse if statements
---
opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/ModifyCommonMsg.java | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/ModifyCommonMsg.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/ModifyCommonMsg.java
index 132c573..4504a58 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/ModifyCommonMsg.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/ModifyCommonMsg.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2009-2010 Sun Microsystems, Inc.
- * Portions Copyright 2013-2014 ForgeRock AS
+ * Portions Copyright 2013-2015 ForgeRock AS
*/
package org.opends.server.replication.protocol;
@@ -131,14 +131,12 @@
{
Attribute attr = mod.getAttribute();
AttributeType type = attr.getAttributeType();
- if (type != null )
+ if (type != null
+ && AttributeUsage.DSA_OPERATION.equals(type.getUsage()) )
{
- if (AttributeUsage.DSA_OPERATION.equals(type.getUsage()))
- {
- // Attributes with a dsaOperation usage should not be synchronized.
- // skip them.
- continue;
- }
+ // Attributes with a dsaOperation usage should not be synchronized.
+ // skip them.
+ continue;
}
if (!EntryHistorical.isHistoricalAttribute(attr))
--
Gitblit v1.10.0