Skip to content

Commit c3c15b8

Browse files
committed
HADOOP-19712. Checkstyles.
1 parent 78880e8 commit c3c15b8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/statistics/impl/EvaluatingStatisticsMap.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ public E setValue(final E val) {
218218

219219
@Override
220220
public boolean equals(final Object o) {
221-
if (!(o instanceof Entry)) {return false;}
221+
if (!(o instanceof Entry)) {
222+
return false;
223+
}
222224
Entry<String, ?> entry = (Entry<String, ?>) o;
223225
return Objects.equals(key, entry.getKey()) && Objects.equals(value, entry.getValue());
224226
}

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/statistics/TestIOStatisticsStore.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ public void testForeach() throws Throwable {
230230
entryCount.reset();
231231
sum.reset();
232232
entries.forEach(e -> {
233-
entryCount.increment();
234-
sum.add(e.getValue());
235-
});
233+
entryCount.increment();
234+
sum.add(e.getValue());
235+
});
236236
}
237237

238238
}

0 commit comments

Comments
 (0)