From 34b97b2d33a1196d3b22bd0ade1e758be613f7f3 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 06 Jun 2014 14:37:42 +0000
Subject: [PATCH] Ensured no accidental protocol break can happen by renaming all ByteArrayBuilder.append*() methods and getting rid of all method overloading.
---
opendj3-server-dev/src/server/org/opends/server/replication/protocol/StartMsg.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/replication/protocol/StartMsg.java b/opendj3-server-dev/src/server/org/opends/server/replication/protocol/StartMsg.java
index fb80b7c..58e5413 100644
--- a/opendj3-server-dev/src/server/org/opends/server/replication/protocol/StartMsg.java
+++ b/opendj3-server-dev/src/server/org/opends/server/replication/protocol/StartMsg.java
@@ -78,10 +78,10 @@
/* The message header is stored in the form :
* <message type><protocol version><generation id><group id>
*/
- builder.append(msgType);
- builder.append((byte) protocolVersion);
- builder.appendUTF8(generationId);
- builder.append(groupId);
+ builder.appendByte(msgType);
+ builder.appendByte((byte) protocolVersion);
+ builder.appendLongUTF8(generationId);
+ builder.appendByte(groupId);
}
/**
@@ -97,10 +97,10 @@
/* The message header is stored in the form :
* <message type><protocol version><generation id>
*/
- builder.append(msgType);
- builder.append((byte) ProtocolVersion.REPLICATION_PROTOCOL_V1_REAL);
- builder.append((byte) 0);
- builder.appendUTF8(generationId);
+ builder.appendByte(msgType);
+ builder.appendByte((byte) ProtocolVersion.REPLICATION_PROTOCOL_V1_REAL);
+ builder.appendByte((byte) 0);
+ builder.appendLongUTF8(generationId);
}
/**
--
Gitblit v1.10.0