Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A8F6114E4 for ; Tue, 8 Jul 2014 15:52:16 +0000 (UTC) Received: (qmail 45394 invoked by uid 500); 8 Jul 2014 15:52:16 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 45350 invoked by uid 500); 8 Jul 2014 15:52:16 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 45328 invoked by uid 99); 8 Jul 2014 15:52:15 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2014 15:52:15 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A8A3B946695; Tue, 8 Jul 2014 15:52:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vines@apache.org To: commits@accumulo.apache.org Date: Tue, 08 Jul 2014 15:52:15 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/3] git commit: ACCUMULO-2623 Using a shorter prefix for Metric's ToStringBuilder Repository: accumulo Updated Branches: refs/heads/master 49d355443 -> 20ce2efa4 ACCUMULO-2623 Using a shorter prefix for Metric's ToStringBuilder This eliminates the pointless package info, as well as the hash code Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/dec0384e Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/dec0384e Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/dec0384e Branch: refs/heads/master Commit: dec0384e137dd85920f1b93a2a8820d4b8d9ef10 Parents: 023be57 Author: John Vines Authored: Tue Jul 8 11:48:28 2014 -0400 Committer: John Vines Committed: Tue Jul 8 11:48:28 2014 -0400 ---------------------------------------------------------------------- .../org/apache/accumulo/server/metrics/AbstractMetricsImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/dec0384e/server/src/main/java/org/apache/accumulo/server/metrics/AbstractMetricsImpl.java ---------------------------------------------------------------------- diff --git a/server/src/main/java/org/apache/accumulo/server/metrics/AbstractMetricsImpl.java b/server/src/main/java/org/apache/accumulo/server/metrics/AbstractMetricsImpl.java index d76c7a3..67fb6ce 100644 --- a/server/src/main/java/org/apache/accumulo/server/metrics/AbstractMetricsImpl.java +++ b/server/src/main/java/org/apache/accumulo/server/metrics/AbstractMetricsImpl.java @@ -32,6 +32,7 @@ import javax.management.StandardMBean; import org.apache.accumulo.core.Constants; import org.apache.commons.lang.builder.ToStringBuilder; +import org.apache.commons.lang.builder.ToStringStyle; import org.apache.commons.lang.time.DateUtils; public abstract class AbstractMetricsImpl { @@ -83,7 +84,7 @@ public abstract class AbstractMetricsImpl { @Override public String toString() { - return new ToStringBuilder(this).append("count", count).append("average", avg).append("minimum", min).append("maximum", max).toString(); + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("count", count).append("average", avg).append("minimum", min).append("maximum", max).toString(); } }