directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject [1/6] directory-kerby git commit: [DIRKRB-326]-Fix CheckStyle Problems. Contributed by Yaning.
Date Thu, 09 Jul 2015 02:50:26 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master cff45814f -> 1d312c9f6


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/1d312c9f/lib/kerby-util/src/main/java/org/apache/kerby/util/IOUtil.java
----------------------------------------------------------------------
diff --git a/lib/kerby-util/src/main/java/org/apache/kerby/util/IOUtil.java b/lib/kerby-util/src/main/java/org/apache/kerby/util/IOUtil.java
index 4e4ec78..3e52932 100644
--- a/lib/kerby-util/src/main/java/org/apache/kerby/util/IOUtil.java
+++ b/lib/kerby-util/src/main/java/org/apache/kerby/util/IOUtil.java
@@ -19,7 +19,12 @@
  */
 package org.apache.kerby.util;
 
-import java.io.*;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
 import java.nio.ByteBuffer;
 import java.nio.channels.FileChannel;
 
@@ -27,7 +32,7 @@ import java.nio.channels.FileChannel;
  * Some IO and file related utilities.
  */
 public final class IOUtil {
-    private IOUtil() {}
+    private IOUtil() { }
 
     public static byte[] readInputStream(InputStream in) throws IOException {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -46,7 +51,7 @@ public final class IOUtil {
         while (toRead > 0) {
             int ret = in.read(buf, off, toRead);
             if (ret < 0) {
-                throw new IOException( "Bad inputStream, premature EOF");
+                throw new IOException("Bad inputStream, premature EOF");
             }
             toRead -= ret;
             off += ret;

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/1d312c9f/lib/kerby-util/src/main/java/org/apache/kerby/util/NetworkUtil.java
----------------------------------------------------------------------
diff --git a/lib/kerby-util/src/main/java/org/apache/kerby/util/NetworkUtil.java b/lib/kerby-util/src/main/java/org/apache/kerby/util/NetworkUtil.java
index caceb0e..6f8c57d 100644
--- a/lib/kerby-util/src/main/java/org/apache/kerby/util/NetworkUtil.java
+++ b/lib/kerby-util/src/main/java/org/apache/kerby/util/NetworkUtil.java
@@ -26,7 +26,7 @@ import java.net.ServerSocket;
  * Some network related utilities.
  */
 public final class NetworkUtil {
-    private NetworkUtil() {}
+    private NetworkUtil() { }
 
     /**
      * Get a server socket point for server, either TCP or UDP.

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/1d312c9f/lib/kerby-util/src/main/java/org/apache/kerby/util/OSUtil.java
----------------------------------------------------------------------
diff --git a/lib/kerby-util/src/main/java/org/apache/kerby/util/OSUtil.java b/lib/kerby-util/src/main/java/org/apache/kerby/util/OSUtil.java
index a75d129..d6dbcd2 100644
--- a/lib/kerby-util/src/main/java/org/apache/kerby/util/OSUtil.java
+++ b/lib/kerby-util/src/main/java/org/apache/kerby/util/OSUtil.java
@@ -23,7 +23,7 @@ package org.apache.kerby.util;
  * An OS related utility, mainly detecting what's the platform it's rnning on.
  */
 public final class OSUtil {
-    private OSUtil() {}
+    private OSUtil() { }
 
     private static final String OS =
             System.getProperty("os.name").toLowerCase();

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/1d312c9f/lib/kerby-util/src/main/java/org/apache/kerby/util/SysUtil.java
----------------------------------------------------------------------
diff --git a/lib/kerby-util/src/main/java/org/apache/kerby/util/SysUtil.java b/lib/kerby-util/src/main/java/org/apache/kerby/util/SysUtil.java
index dc6bb1d..d607871 100644
--- a/lib/kerby-util/src/main/java/org/apache/kerby/util/SysUtil.java
+++ b/lib/kerby-util/src/main/java/org/apache/kerby/util/SysUtil.java
@@ -25,7 +25,7 @@ import java.io.File;
  * A system related utility.
  */
 public final class SysUtil {
-    private SysUtil() {}
+    private SysUtil() { }
 
     public static File getTempDir() {
         String tmpDir = System.getProperty("java.io.tmpdir");

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/1d312c9f/lib/kerby-util/src/main/java/org/apache/kerby/util/Utf8.java
----------------------------------------------------------------------
diff --git a/lib/kerby-util/src/main/java/org/apache/kerby/util/Utf8.java b/lib/kerby-util/src/main/java/org/apache/kerby/util/Utf8.java
index 767c461..4952665 100644
--- a/lib/kerby-util/src/main/java/org/apache/kerby/util/Utf8.java
+++ b/lib/kerby-util/src/main/java/org/apache/kerby/util/Utf8.java
@@ -22,7 +22,7 @@ package org.apache.kerby.util;
 import java.io.UnsupportedEncodingException;
 
 public final class Utf8 {
-    private Utf8() {}
+    private Utf8() { }
 
     public static String toString(byte[] bytes) {
         try {

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/1d312c9f/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index fa74130..f292cc3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -250,12 +250,10 @@
         <artifactId>maven-pmd-plugin</artifactId>
       </plugin>
 
-      <!--
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
       </plugin>
-      -->
 
     </plugins>
   </build>


Mime
View raw message