From a41662c1136b2bb4a4198df89e0e87d2be3ef099 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 16 Jul 2015 14:57:56 +0000
Subject: [PATCH] AutoRefactor'ed simplify expressions

---
 opendj-server-legacy/src/main/java/org/opends/server/admin/DurationPropertyDefinition.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/admin/DurationPropertyDefinition.java b/opendj-server-legacy/src/main/java/org/opends/server/admin/DurationPropertyDefinition.java
index 517d1be..67d70bb 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/admin/DurationPropertyDefinition.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/admin/DurationPropertyDefinition.java
@@ -464,7 +464,7 @@
       throw PropertyException.illegalPropertyValueException(this, value);
     }
 
-    if ((upperLimit != null) && (nvalue > upperLimit)) {
+    if (upperLimit != null && nvalue > upperLimit) {
       throw PropertyException.illegalPropertyValueException(this, value);
     }
   }
@@ -508,7 +508,7 @@
 
     // Check the unit is in range - values must not be more granular
     // than the base unit.
-    if ((ms % baseUnit.getDuration()) != 0) {
+    if (ms % baseUnit.getDuration() != 0) {
       throw PropertyException.illegalPropertyValueException(this, value);
     }
 

--
Gitblit v1.10.0