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 CE23D200C73 for ; Wed, 26 Apr 2017 05:04:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CCA07160BB8; Wed, 26 Apr 2017 03:04:45 +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 17A92160BB3 for ; Wed, 26 Apr 2017 05:04:44 +0200 (CEST) Received: (qmail 98187 invoked by uid 500); 26 Apr 2017 03:04:42 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 98175 invoked by uid 99); 26 Apr 2017 03:04:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2017 03:04:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2A7BFDFBDA; Wed, 26 Apr 2017 03:04:42 +0000 (UTC) From: alburthoffman To: dev@zookeeper.apache.org Reply-To: dev@zookeeper.apache.org References: In-Reply-To: Subject: [GitHub] zookeeper pull request #238: ZOOKEEPER-2763: Utils.toCsvBuffer() omits leadi... Content-Type: text/plain Message-Id: <20170426030442.2A7BFDFBDA@git1-us-west.apache.org> Date: Wed, 26 Apr 2017 03:04:42 +0000 (UTC) archived-at: Wed, 26 Apr 2017 03:04:46 -0000 Github user alburthoffman commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/238#discussion_r113356883 --- Diff: src/java/main/org/apache/jute/Utils.java --- @@ -190,19 +190,32 @@ static String fromCSVString(String s) throws IOException { } /** + * convert byte array to a string in hex format * - * @param s - * @return + * @param barr + * @return */ - static String toXMLBuffer(byte barr[]) { --- End diff -- you are right. printHexBinary works exactly as same as toHexString. I will change it to use printHexBinary and add test cases. Thx for ur suggestion --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---