Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 36DD6200C18 for ; Sat, 11 Feb 2017 13:34:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 35665160B5D; Sat, 11 Feb 2017 12:34:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 80627160B51 for ; Sat, 11 Feb 2017 13:34:42 +0100 (CET) Received: (qmail 40810 invoked by uid 500); 11 Feb 2017 12:34:41 -0000 Mailing-List: contact notifications-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list notifications@commons.apache.org Received: (qmail 40801 invoked by uid 99); 11 Feb 2017 12:34:41 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2017 12:34:41 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 15E8F3A0069 for ; Sat, 11 Feb 2017 12:34:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1006551 - /websites/production/commons/content/proper/commons-crypto/xref-test/org/apache/commons/crypto/examples/CipherByteBufferExample.html Date: Sat, 11 Feb 2017 12:34:40 -0000 To: notifications@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170211123441.15E8F3A0069@svn01-us-west.apache.org> archived-at: Sat, 11 Feb 2017 12:34:43 -0000 Author: sebb Date: Sat Feb 11 12:34:40 2017 New Revision: 1006551 Log: CRYPTO-134 CipherByteBufferExample should not truncate the string Modified: websites/production/commons/content/proper/commons-crypto/xref-test/org/apache/commons/crypto/examples/CipherByteBufferExample.html Modified: websites/production/commons/content/proper/commons-crypto/xref-test/org/apache/commons/crypto/examples/CipherByteBufferExample.html ============================================================================== --- websites/production/commons/content/proper/commons-crypto/xref-test/org/apache/commons/crypto/examples/CipherByteBufferExample.html (original) +++ websites/production/commons/content/proper/commons-crypto/xref-test/org/apache/commons/crypto/examples/CipherByteBufferExample.html Sat Feb 11 12:34:40 2017 @@ -107,7 +107,7 @@ 99 */ 100 private static String asString(ByteBuffer buffer) { 101 final ByteBuffer copy = buffer.duplicate(); -102 final byte[] bytes = new byte[Math.min(copy.remaining(),50)]; +102 final byte[] bytes = new byte[copy.remaining()]; 103 copy.get(bytes); 104 return new String(bytes, StandardCharsets.UTF_8); 105 }