Explorar o código

HDDS-1447. Fix CheckStyle warnings. Contributed by Wanqiang Ji.

Márton Elek %!s(int64=6) %!d(string=hai) anos
pai
achega
b979fdde99

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

@@ -316,8 +316,8 @@ public class KeyOutputStream extends OutputStream {
         BlockOutputStreamEntry current = streamEntries.get(currentStreamIndex);
 
         // length(len) will be in int range if the call is happening through
-        // write API of blockOutputStream. Length can be in long range if it comes
-        // via Exception path.
+        // write API of blockOutputStream. Length can be in long range if it
+        // comes via Exception path.
         int writeLen = Math.min((int) len, (int) current.getRemaining());
         long currentPos = current.getWrittenDataLength();
         try {
@@ -619,8 +619,8 @@ public class KeyOutputStream extends OutputStream {
           try {
             Collection<DatanodeDetails> failedServers =
                 entry.getFailedServers();
-            // failed servers can be null in case there is no data written in the
-            // stream
+            // failed servers can be null in case there is no data written in
+            // the stream
             if (failedServers != null && !failedServers.isEmpty()) {
               excludeList.addDatanodes(failedServers);
             }

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

@@ -728,8 +728,9 @@ public final class ContainerTestHelper {
     List<Long> containerIdList = new ArrayList<>();
     for (OmKeyLocationInfo info : locationInfoList) {
       long id = info.getContainerID();
-      if (!containerIdList.contains(id))
-      containerIdList.add(id);
+      if (!containerIdList.contains(id)) {
+        containerIdList.add(id);
+      }
     }
     Assert.assertTrue(!containerIdList.isEmpty());
     waitForContainerClose(cluster, containerIdList.toArray(new Long[0]));