Skip to content

Commit 6e65586

Browse files
committed
Fix checkstyle and java doc errors
1 parent 9e1fdbc commit 6e65586

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsUserAggregateFactory.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@
2222
import org.apache.hadoop.conf.Configuration;
2323
import org.apache.yetus.audience.InterfaceAudience;
2424

25-
@InterfaceAudience.Private public class MetricsUserAggregateFactory {
26-
public static String METRIC_USER_ENABLED_CONF = "hbase.regionserver.user.metrics.enabled";
27-
public static boolean DEFAULT_METRIC_USER_ENABLED_CONF = true;
25+
@InterfaceAudience.Private
26+
public class MetricsUserAggregateFactory {
27+
private MetricsUserAggregateFactory() {
28+
29+
}
30+
public static final String METRIC_USER_ENABLED_CONF = "hbase.regionserver.user.metrics.enabled";
31+
public static final boolean DEFAULT_METRIC_USER_ENABLED_CONF = true;
2832

2933
public static MetricsUserAggregate getMetricsUserAggregate(Configuration conf) {
3034
if (conf.getBoolean(METRIC_USER_ENABLED_CONF, DEFAULT_METRIC_USER_ENABLED_CONF)) {

hbase-server/src/main/java/org/apache/hadoop/hbase/util/LossyCounting.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ public void add(T key) {
110110

111111
/**
112112
* sweep low frequency data
113-
* @return Names of elements got swept
114113
*/
115114
@VisibleForTesting
116115
public void sweep() {

0 commit comments

Comments
 (0)