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/replication/protocol/StartMsg.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/StartMsg.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/StartMsg.java
index 58e5413..47d28cd 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/StartMsg.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/StartMsg.java
@@ -22,7 +22,7 @@
  *
  *
  *      Copyright 2006-2009 Sun Microsystems, Inc.
- *      Portions Copyright 2013-2014 ForgeRock AS.
+ *      Portions Copyright 2013-2015 ForgeRock AS.
  */
 package org.opends.server.replication.protocol;
 
@@ -79,7 +79,7 @@
      * <message type><protocol version><generation id><group id>
      */
     builder.appendByte(msgType);
-    builder.appendByte((byte) protocolVersion);
+    builder.appendByte(protocolVersion);
     builder.appendLongUTF8(generationId);
     builder.appendByte(groupId);
   }
@@ -98,8 +98,8 @@
      * <message type><protocol version><generation id>
      */
     builder.appendByte(msgType);
-    builder.appendByte((byte) ProtocolVersion.REPLICATION_PROTOCOL_V1_REAL);
-    builder.appendByte((byte) 0);
+    builder.appendByte(ProtocolVersion.REPLICATION_PROTOCOL_V1_REAL);
+    builder.appendByte(0);
     builder.appendLongUTF8(generationId);
   }
 

--
Gitblit v1.10.0