From 67e10af4d925d4cef15be9aa48781d439c29f171 Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Fri, 12 Jun 2015 12:04:53 +0200
Subject: [PATCH 07/17] Port to Kryo 3.0

---
 .../org/gradle/internal/serialize/kryo/KryoBackedEncoder.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/messaging/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedEncoder.java b/subprojects/messaging/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedEncoder.java
index c63e4340069..9f93df4ab8a 100644
--- a/subprojects/messaging/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedEncoder.java
+++ b/subprojects/messaging/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedEncoder.java
@@ -78,7 +78,7 @@ public class KryoBackedEncoder extends AbstractEncoder implements FlushableEncod
      * Returns the total number of bytes written by this encoder, some of which may still be buffered.
      */
     public int getWritePosition() {
-        return output.total();
+        return (int)output.total();
     }
 
     public void flush() {
-- 
2.17.2

