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/api/AttributeSyntax.java | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/api/AttributeSyntax.java b/opendj-server-legacy/src/main/java/org/opends/server/api/AttributeSyntax.java
index 5a1b7be..5686f63 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/api/AttributeSyntax.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/api/AttributeSyntax.java
@@ -349,16 +349,10 @@
buffer.append(getOID());
String description = getDescription();
- if ((description == null) || (description.length() == 0))
+ if (description != null && description.length() != 0)
{
- buffer.append(" )");
+ buffer.append(" DESC '").append(description).append("'");
}
- else
- {
- buffer.append(" DESC '");
- buffer.append(description);
- buffer.append("' )");
- }
+ buffer.append(" )");
}
}
-
--
Gitblit v1.10.0