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/schema/AuthPasswordSyntax.java | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordSyntax.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordSyntax.java
index 4361312..8a8fa1f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordSyntax.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordSyntax.java
@@ -122,7 +122,7 @@
// First, ignore any leading whitespace.
int length = authPasswordValue.length();
int pos = 0;
- while ((pos < length) && (authPasswordValue.charAt(pos) == ' '))
+ while (pos < length && authPasswordValue.charAt(pos) == ' ')
{
pos++;
}
@@ -204,12 +204,12 @@
// Ignore any spaces before the dollar sign separator. Then read the dollar
// sign and ignore any trailing spaces.
- while ((pos < length) && (authPasswordValue.charAt(pos) == ' '))
+ while (pos < length && authPasswordValue.charAt(pos) == ' ')
{
pos++;
}
- if ((pos < length) && (authPasswordValue.charAt(pos) == '$'))
+ if (pos < length && authPasswordValue.charAt(pos) == '$')
{
pos++;
}
@@ -220,7 +220,7 @@
message);
}
- while ((pos < length) && (authPasswordValue.charAt(pos) == ' '))
+ while (pos < length && authPasswordValue.charAt(pos) == ' ')
{
pos++;
}
@@ -232,7 +232,7 @@
while (pos < length)
{
char c = authPasswordValue.charAt(pos);
- if ((c == ' ') || (c == '$'))
+ if (c == ' ' || c == '$')
{
break readAuthInfo;
}
@@ -262,12 +262,12 @@
// Ignore any spaces before the dollar sign separator. Then read the dollar
// sign and ignore any trailing spaces.
- while ((pos < length) && (authPasswordValue.charAt(pos) == ' '))
+ while (pos < length && authPasswordValue.charAt(pos) == ' ')
{
pos++;
}
- if ((pos < length) && (authPasswordValue.charAt(pos) == '$'))
+ if (pos < length && authPasswordValue.charAt(pos) == '$')
{
pos++;
}
@@ -278,7 +278,7 @@
ResultCode.INVALID_ATTRIBUTE_SYNTAX, message);
}
- while ((pos < length) && (authPasswordValue.charAt(pos) == ' '))
+ while (pos < length && authPasswordValue.charAt(pos) == ' ')
{
pos++;
}
@@ -289,7 +289,7 @@
while (pos < length)
{
char c = authPasswordValue.charAt(pos);
- if ((c == ' ') || (c == '$'))
+ if (c == ' ' || c == '$')
{
break ;
}
--
Gitblit v1.10.0