accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject [1/2] git commit: ACCUMULO-2623 Using a shorter prefix for Metric's ToStringBuilder
Date Tue, 08 Jul 2014 15:50:39 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6.1-SNAPSHOT d82ddffa8 -> 01da4f4a8


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/1.6.1-SNAPSHOT
Commit: dec0384e137dd85920f1b93a2a8820d4b8d9ef10
Parents: 023be57
Author: John Vines <vines@apache.org>
Authored: Tue Jul 8 11:48:28 2014 -0400
Committer: John Vines <vines@apache.org>
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();
     }
     
   }


Mime
View raw message