Repository: giraph
Updated Branches:
  refs/heads/trunk b5a63d816 -> 24664b939


GIRAPH-1075 checkstyle

Summary:

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev:


Project: http://git-wip-us.apache.org/repos/asf/giraph/repo
Commit: http://git-wip-us.apache.org/repos/asf/giraph/commit/24664b93
Tree: http://git-wip-us.apache.org/repos/asf/giraph/tree/24664b93
Diff: http://git-wip-us.apache.org/repos/asf/giraph/diff/24664b93

Branch: refs/heads/trunk
Commit: 24664b9397a6dc153251ffd7a4d3c01515988748
Parents: b5a63d8
Author: Maja Kabiljo <[email protected]>
Authored: Mon Jun 20 10:24:26 2016 -0700
Committer: Maja Kabiljo <[email protected]>
Committed: Mon Jun 20 10:24:26 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/giraph/blob/24664b93/giraph-core/src/main/java/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java
----------------------------------------------------------------------
diff --git 
a/giraph-core/src/main/java/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java
 
b/giraph-core/src/main/java/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java
index 3c1bbba..27f1156 100644
--- 
a/giraph-core/src/main/java/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java
+++ 
b/giraph-core/src/main/java/org/apache/giraph/utils/UnsafeByteArrayOutputStream.java
@@ -290,9 +290,10 @@ public class UnsafeByteArrayOutputStream extends 
OutputStream
       }
     }
 
-    if (utflen > 65535)
+    if (utflen > 65535) {
       throw new UTFDataFormatException(
           "encoded string too long: " + utflen + " bytes");
+    }
 
     ensureSize(utflen + SIZE_OF_SHORT);
     writeShort(utflen);

Reply via email to