From 28a765a31794b34ee8adf2b90f5d7ab8f8995bee Mon Sep 17 00:00:00 2001 From: Vladimir Pankrashkin Date: Thu, 10 May 2018 15:16:10 +0300 Subject: [PATCH] BJ-285: Increase ByteBuffer print length to 4096 (#32) --- build_utils | 2 +- libthrift/pom.xml | 2 +- libthrift/src/main/java/org/apache/thrift/TBaseHelper.java | 2 +- pom.xml | 4 ++-- woody-api/pom.xml | 2 +- woody-thrift/pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build_utils b/build_utils index 8dd1d30..f7fe66c 160000 --- a/build_utils +++ b/build_utils @@ -1 +1 @@ -Subproject commit 8dd1d30e97e4db20c9da98a5ddb261b199402bc0 +Subproject commit f7fe66c9f3d4f37566a04c521b28aa168b7a88ec diff --git a/libthrift/pom.xml b/libthrift/pom.xml index f407a92..d1fbbba 100644 --- a/libthrift/pom.xml +++ b/libthrift/pom.xml @@ -5,7 +5,7 @@ woody com.rbkmoney.woody - 1.1.12 + 1.1.13 4.0.0 diff --git a/libthrift/src/main/java/org/apache/thrift/TBaseHelper.java b/libthrift/src/main/java/org/apache/thrift/TBaseHelper.java index 559df33..59da854 100644 --- a/libthrift/src/main/java/org/apache/thrift/TBaseHelper.java +++ b/libthrift/src/main/java/org/apache/thrift/TBaseHelper.java @@ -247,7 +247,7 @@ public final class TBaseHelper { int arrayOffset = bb.arrayOffset(); int offset = arrayOffset + bb.position(); int origLimit = arrayOffset + bb.limit(); - int limit = (origLimit - offset > 128) ? offset + 128 : origLimit; + int limit = (origLimit - offset > 4096) ? offset + 4096 : origLimit; for (int i = offset; i < limit; i++) { if (i > offset) { diff --git a/pom.xml b/pom.xml index 598f2e1..5ff6143 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ pom com.rbkmoney.woody woody - 1.1.12 + 1.1.13 Java implementation for Woody spec @@ -36,7 +36,7 @@ org.slf4j slf4j-api - 1.7.21 + 1.7.25 diff --git a/woody-api/pom.xml b/woody-api/pom.xml index bced648..69e0f9b 100644 --- a/woody-api/pom.xml +++ b/woody-api/pom.xml @@ -5,7 +5,7 @@ woody com.rbkmoney.woody - 1.1.12 + 1.1.13 4.0.0 diff --git a/woody-thrift/pom.xml b/woody-thrift/pom.xml index 887ea95..544e244 100644 --- a/woody-thrift/pom.xml +++ b/woody-thrift/pom.xml @@ -5,7 +5,7 @@ woody com.rbkmoney.woody - 1.1.12 + 1.1.13 4.0.0