From 07e7cb84f497a907074b5ca46f3147f65488d6ed Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 05 Nov 2015 12:25:28 +0000
Subject: [PATCH] OPENDJ-1802 Make ByteStringBuilder methods more intentional
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
index 38beda8..45f044c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
@@ -120,14 +120,14 @@
// encode the dn inside the value
// because the dn is encoded in a non reversible way in the key
byte[] dnBytes = StaticUtils.getBytes(dn.toString());
- b.append(dnBytes.length);
- b.append(dnBytes);
- b.append(col.size());
+ b.appendInt(dnBytes.length);
+ b.appendBytes(dnBytes);
+ b.appendInt(col.size());
for (String s : col)
{
byte[] bytes = StaticUtils.getBytes(s);
- b.append(bytes.length);
- b.append(bytes);
+ b.appendInt(bytes.length);
+ b.appendBytes(bytes);
}
return b;
}
--
Gitblit v1.10.0