Skip to content

Commit ad11f1b

Browse files
author
Ravindra Dingankar
committed
fix style errors
1 parent b58e617 commit ad11f1b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableInverseQuantiles.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ static class InversePercentile extends Quantile {
5050
}
5151

5252
@VisibleForTesting
53-
public static final Quantile[] INVERSE_QUANTILES = { new InversePercentile(50),
53+
public static final Quantile[] INVERSE_QUANTILES = {new InversePercentile(50),
5454
new InversePercentile(25), new InversePercentile(10),
55-
new InversePercentile(5), new InversePercentile(1) };
55+
new InversePercentile(5), new InversePercentile(1)};
5656

5757
private ScheduledFuture<?> scheduledTask;
5858

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/metrics2/util/TestSampleQuantiles.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class TestSampleQuantiles {
4040
Random rnd = new Random(0xDEADDEAD);
4141
final static int NUM_REPEATS = 10;
4242

43-
@Before
43+
@Before
4444
public void init() {
4545
estimator = new SampleQuantiles(quantiles);
4646
}
@@ -102,7 +102,7 @@ public void testQuantileError() throws IOException {
102102
// Repeat shuffle/insert/check cycles 10 times
103103
for (int i = 0; i < NUM_REPEATS; i++) {
104104

105-
// Shuffle
105+
// Shuffle
106106
Collections.shuffle(Arrays.asList(values), rnd);
107107
estimator.clear();
108108

@@ -130,7 +130,8 @@ public void testQuantileError() throws IOException {
130130
*/
131131
@Test
132132
public void testInverseQuantiles() throws IOException {
133-
SampleQuantiles inverseQuantilesEstimator = new SampleQuantiles(MutableInverseQuantiles.INVERSE_QUANTILES);
133+
SampleQuantiles inverseQuantilesEstimator =
134+
new SampleQuantiles(MutableInverseQuantiles.INVERSE_QUANTILES);
134135
final int count = 100000;
135136
int[] values = new int[count];
136137
for (int i = 0; i < count; i++) {

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/MetricsAsserts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,13 @@ public static void assertQuantileGauges(String prefix,
392392
*/
393393
public static void assertQuantileGauges(String prefix,
394394
MetricsRecordBuilder rb, String valueName) {
395-
verify(rb).addGauge(eqName(info(prefix + "NumOps", "")), geq(0l));
395+
verify(rb).addGauge(eqName(info(prefix + "NumOps", "")), geq(0L));
396396
for (Quantile q : MutableQuantiles.quantiles) {
397397
String nameTemplate = prefix + "%dthPercentile" + valueName;
398398
int percentile = (int) (100 * q.quantile);
399399
verify(rb).addGauge(
400400
eqName(info(String.format(nameTemplate, percentile), "")),
401-
geq(0l));
401+
geq(0L));
402402
}
403403
}
404404

0 commit comments

Comments
 (0)