You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2020/06/16 16:48:48 UTC

[commons-net] branch master updated: Checkstyle: trailing spaces and long lines

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
     new 69a16ee  Checkstyle: trailing spaces and long lines
69a16ee is described below

commit 69a16eed7df49ff18d908bf3033d5c864557e211
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jun 16 17:48:38 2020 +0100

    Checkstyle: trailing spaces and long lines
---
 .../java/org/apache/commons/net/examples/ftp/FTPClientExample.java | 4 ++--
 .../java/org/apache/commons/net/examples/mail/IMAPExportMbox.java  | 2 +-
 .../java/org/apache/commons/net/examples/mail/IMAPImportMbox.java  | 3 ++-
 .../java/org/apache/commons/net/examples/mail/POP3ExportMbox.java  | 7 ++++---
 src/main/java/org/apache/commons/net/util/SubnetUtils.java         | 2 +-
 5 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/apache/commons/net/examples/ftp/FTPClientExample.java b/src/main/java/org/apache/commons/net/examples/ftp/FTPClientExample.java
index 0bfd7e7..2911f17 100644
--- a/src/main/java/org/apache/commons/net/examples/ftp/FTPClientExample.java
+++ b/src/main/java/org/apache/commons/net/examples/ftp/FTPClientExample.java
@@ -512,7 +512,7 @@ __main:
                 ftp.retrieveFile(remote, output);
 
                 output.close();
-               
+
                 if (keepAliveTimeout > 0) {
                     showCslStats(ftp);
                 }
@@ -555,7 +555,7 @@ __main:
         @SuppressWarnings("deprecation") // debug code
         int []stats = ftp.getCslDebug();
         System.out.println("CslDebug="+Arrays.toString(stats));
-        
+
     }
 
     private static CopyStreamListener createListener(){
diff --git a/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java b/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java
index 3cdf11d..1b3b15c 100644
--- a/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java
+++ b/src/main/java/org/apache/commons/net/examples/mail/IMAPExportMbox.java
@@ -380,7 +380,7 @@ public final class IMAPExportMbox
                         replyTo = parts[1];
                         if (replyTo.startsWith("<")) {
                             if (replyTo.endsWith(">")) {
-                                replyTo = replyTo.substring(1,replyTo.length()-1); // drop <> wrapper                                
+                                replyTo = replyTo.substring(1,replyTo.length()-1); // drop <> wrapper
                             } else {
                                 System.err.println("Unexpected Return-path: '" + line+ "' in " + firstLine);
                             }
diff --git a/src/main/java/org/apache/commons/net/examples/mail/IMAPImportMbox.java b/src/main/java/org/apache/commons/net/examples/mail/IMAPImportMbox.java
index eaeb0a8..c5a3e2c 100644
--- a/src/main/java/org/apache/commons/net/examples/mail/IMAPImportMbox.java
+++ b/src/main/java/org/apache/commons/net/examples/mail/IMAPImportMbox.java
@@ -152,7 +152,8 @@ public final class IMAPImportMbox
     }
 
     private static String getDate(String msg) {
-        final Pattern FROM_RE = Pattern.compile("From \\S+ +\\S+ (\\S+)  ?(\\S+) (\\S+) (\\S+)"); // From SENDER Fri Sep 13 17:04:01 2019
+                                              // From SENDER Fri Sep 13 17:04:01 2019
+        final Pattern FROM_RE = Pattern.compile("From \\S+ +\\S+ (\\S+)  ?(\\S+) (\\S+) (\\S+)");
         //                                                 [Fri]   Sep      13     HMS   2019
         // output date: 13-Sep-2019 17:04:01 +0000
         String date = null;
diff --git a/src/main/java/org/apache/commons/net/examples/mail/POP3ExportMbox.java b/src/main/java/org/apache/commons/net/examples/mail/POP3ExportMbox.java
index 5181fde..f1b8d16 100644
--- a/src/main/java/org/apache/commons/net/examples/mail/POP3ExportMbox.java
+++ b/src/main/java/org/apache/commons/net/examples/mail/POP3ExportMbox.java
@@ -141,9 +141,10 @@ public final class POP3ExportMbox
                     System.out.println("Writing dir: " + mbox);
                     // Currently POP3Client uses iso-8859-1
                     for (int i = 1; i <= count; i++) {
-                        OutputStreamWriter fw = new OutputStreamWriter(new FileOutputStream(new File(mbox,i+".eml")),Charset.forName("iso-8859-1"));
+                        OutputStreamWriter fw = new OutputStreamWriter(
+                            new FileOutputStream(new File(mbox,i+".eml")),Charset.forName("iso-8859-1"));
                         writeFile(pop3, fw, i);
-                        fw.close();                    
+                        fw.close();
                     }
                 } else {
                     System.out.println("Writing file: " + mbox);
@@ -152,7 +153,7 @@ public final class POP3ExportMbox
                     for (int i = 1; i <= count; i++) {
                         writeMbox(pop3, fw, i);
                     }
-                    fw.close();                    
+                    fw.close();
                 }
             }
 
diff --git a/src/main/java/org/apache/commons/net/util/SubnetUtils.java b/src/main/java/org/apache/commons/net/util/SubnetUtils.java
index f18f2c6..b512a67 100644
--- a/src/main/java/org/apache/commons/net/util/SubnetUtils.java
+++ b/src/main/java/org/apache/commons/net/util/SubnetUtils.java
@@ -57,7 +57,7 @@ public class SubnetUtils {
 
           int trailingZeroes = NBITS - rangeCheck(Integer.parseInt(matcher.group(5)), 0, NBITS);
           /*
-           * An IPv4 netmask consists of 32 bits, a contiguous sequence 
+           * An IPv4 netmask consists of 32 bits, a contiguous sequence
            * of the specified number of ones followed by all zeros.
            * So, it can be obtained by shifting an unsigned integer (32 bits) to the left by
            * the number of trailing zeros which is (32 - the # bits specification).