Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8FE817AA0 for ; Mon, 15 Jun 2015 14:21:00 +0000 (UTC) Received: (qmail 20861 invoked by uid 500); 15 Jun 2015 14:21:00 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 20822 invoked by uid 500); 15 Jun 2015 14:21:00 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 20811 invoked by uid 99); 15 Jun 2015 14:21:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2015 14:21:00 +0000 Date: Mon, 15 Jun 2015 14:21:00 +0000 (UTC) From: "Eric Newton (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2493) BinaryFormatter needs to be refactored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14586096#comment-14586096 ] Eric Newton commented on ACCUMULO-2493: --------------------------------------- Ideally, formatters would be stateless, except for some constant configuration. I don't know what's up with that funky {{getlength}} method. > BinaryFormatter needs to be refactored > -------------------------------------- > > Key: ACCUMULO-2493 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2493 > Project: Accumulo > Issue Type: Bug > Components: client > Reporter: Mike Drob > Assignee: Steve Blackmore > Labels: newbie > > BinaryFormatter is currently used in a couple places in the shell, but the code is hard to read and understand. There is a static getlength, which is actually a setter, and all the instance calls end up going through unnecessary static methods. > This combination makes it hard to reuse BinaryFormatter objects, or even use multiple, since the static state is likely to conflict. -- This message was sent by Atlassian JIRA (v6.3.4#6332)