From e4c0edea06c8fee28369f03f393b7d54b2b6235c Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 16 Sep 2016 13:25:06 +0000
Subject: [PATCH] OPENDJ-3246 Return the CREST descriptor over REST for rest2ldap endpoints

---
 opendj-server-legacy/src/main/java/org/opends/server/util/BuildVersion.java |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/util/BuildVersion.java b/opendj-server-legacy/src/main/java/org/opends/server/util/BuildVersion.java
index 2312c91..afc63c8 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/util/BuildVersion.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/util/BuildVersion.java
@@ -276,6 +276,17 @@
     {
       return Utils.joinAsString(".", major, minor, point, rev);
     }
+    return toStringNoRevision();
+  }
+
+  /**
+   * Returns a string representation of the BuildVersion including the major, minor and point
+   * versions, but excluding the revision number.
+   *
+   * @return a string representation excluding the revision number
+   */
+  public String toStringNoRevision()
+  {
     return Utils.joinAsString(".", major, minor, point);
   }
 

--
Gitblit v1.10.0