Skip to content

Commit b979fdd

Browse files
committed
HDDS-1447. Fix CheckStyle warnings. Contributed by Wanqiang Ji.
1 parent 8aea5e4 commit b979fdd

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/KeyOutputStream.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ private void handleWrite(byte[] b, int off, long len, boolean retry)
316316
BlockOutputStreamEntry current = streamEntries.get(currentStreamIndex);
317317

318318
// length(len) will be in int range if the call is happening through
319-
// write API of blockOutputStream. Length can be in long range if it comes
320-
// via Exception path.
319+
// write API of blockOutputStream. Length can be in long range if it
320+
// comes via Exception path.
321321
int writeLen = Math.min((int) len, (int) current.getRemaining());
322322
long currentPos = current.getWrittenDataLength();
323323
try {
@@ -619,8 +619,8 @@ private void handleFlushOrClose(StreamAction op) throws IOException {
619619
try {
620620
Collection<DatanodeDetails> failedServers =
621621
entry.getFailedServers();
622-
// failed servers can be null in case there is no data written in the
623-
// stream
622+
// failed servers can be null in case there is no data written in
623+
// the stream
624624
if (failedServers != null && !failedServers.isEmpty()) {
625625
excludeList.addDatanodes(failedServers);
626626
}

hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/ContainerTestHelper.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,9 @@ public static void waitForContainerClose(OzoneOutputStream outputStream,
728728
List<Long> containerIdList = new ArrayList<>();
729729
for (OmKeyLocationInfo info : locationInfoList) {
730730
long id = info.getContainerID();
731-
if (!containerIdList.contains(id))
732-
containerIdList.add(id);
731+
if (!containerIdList.contains(id)) {
732+
containerIdList.add(id);
733+
}
733734
}
734735
Assert.assertTrue(!containerIdList.isEmpty());
735736
waitForContainerClose(cluster, containerIdList.toArray(new Long[0]));

0 commit comments

Comments
 (0)