commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1297229 - in /commons/proper/net/trunk/src/main/java/examples: ftp/ mail/ nntp/ ntp/ unix/
Date Mon, 05 Mar 2012 21:02:11 GMT
Author: sebb
Date: Mon Mar  5 21:02:08 2012
New Revision: 1297229

URL: http://svn.apache.org/viewvc?rev=1297229&view=rev
Log:
No need for final qualifiers on main methods

Modified:
    commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java
    commons/proper/net/trunk/src/main/java/examples/ftp/ServerToServerFTP.java
    commons/proper/net/trunk/src/main/java/examples/ftp/TFTPExample.java
    commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java
    commons/proper/net/trunk/src/main/java/examples/mail/POP3Mail.java
    commons/proper/net/trunk/src/main/java/examples/mail/SMTPMail.java
    commons/proper/net/trunk/src/main/java/examples/nntp/ListNewsgroups.java
    commons/proper/net/trunk/src/main/java/examples/nntp/PostMessage.java
    commons/proper/net/trunk/src/main/java/examples/ntp/NTPClient.java
    commons/proper/net/trunk/src/main/java/examples/ntp/TimeClient.java
    commons/proper/net/trunk/src/main/java/examples/unix/chargen.java
    commons/proper/net/trunk/src/main/java/examples/unix/daytime.java
    commons/proper/net/trunk/src/main/java/examples/unix/echo.java
    commons/proper/net/trunk/src/main/java/examples/unix/finger.java
    commons/proper/net/trunk/src/main/java/examples/unix/fwhois.java
    commons/proper/net/trunk/src/main/java/examples/unix/rdate.java
    commons/proper/net/trunk/src/main/java/examples/unix/rexec.java
    commons/proper/net/trunk/src/main/java/examples/unix/rlogin.java
    commons/proper/net/trunk/src/main/java/examples/unix/rshell.java

Modified: commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java Mon Mar  5 21:02:08
2012
@@ -72,7 +72,7 @@ public final class FTPClientExample
         "\t-PrP password - HTTP Proxy server password\n" +
         "\t-# - add hash display during transfers\n";
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
         boolean storeFile = false, binaryTransfer = false, error = false, listFiles = false,
listNames = false, hidden = false;
         boolean localActive = false, useEpsvWithIPv4 = false, feat = false, printHash = false;

Modified: commons/proper/net/trunk/src/main/java/examples/ftp/ServerToServerFTP.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/ftp/ServerToServerFTP.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/ftp/ServerToServerFTP.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/ftp/ServerToServerFTP.java Mon Mar  5
21:02:08 2012
@@ -40,7 +40,7 @@ import org.apache.commons.net.ftp.FTPRep
 public final class ServerToServerFTP
 {
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
         String server1, username1, password1, file1;
         String server2, username2, password2, file2;

Modified: commons/proper/net/trunk/src/main/java/examples/ftp/TFTPExample.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/ftp/TFTPExample.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/ftp/TFTPExample.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/ftp/TFTPExample.java Mon Mar  5 21:02:08
2012
@@ -59,7 +59,7 @@ public final class TFTPExample
         "\t-a Use ASCII transfer mode\n" +
         "\t-b Use binary transfer mode\n";
 
-    public final static void main(String[] args)
+    public static void main(String[] args)
     {
         boolean receiveFile = true, closed;
         int transferMode = TFTP.BINARY_MODE, argc;

Modified: commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/mail/IMAPMail.java Mon Mar  5 21:02:08
2012
@@ -34,7 +34,7 @@ import org.apache.commons.net.imap.IMAPS
 public final class IMAPMail
 {
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
         if (args.length < 3)
         {

Modified: commons/proper/net/trunk/src/main/java/examples/mail/POP3Mail.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/mail/POP3Mail.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/mail/POP3Mail.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/mail/POP3Mail.java Mon Mar  5 21:02:08
2012
@@ -56,7 +56,7 @@ public final class POP3Mail
         System.out.println(Integer.toString(id) + " From: " + from + "  Subject: " + subject);
     }
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
         if (args.length < 3)
         {

Modified: commons/proper/net/trunk/src/main/java/examples/mail/SMTPMail.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/mail/SMTPMail.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/mail/SMTPMail.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/mail/SMTPMail.java Mon Mar  5 21:02:08
2012
@@ -43,7 +43,7 @@ import org.apache.commons.net.smtp.Simpl
 public final class SMTPMail
 {
 
-    public final static void main(String[] args)
+    public static void main(String[] args)
     {
         String sender, recipient, subject, filename, server, cc;
         List<String> ccList = new ArrayList<String>();

Modified: commons/proper/net/trunk/src/main/java/examples/nntp/ListNewsgroups.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/nntp/ListNewsgroups.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/nntp/ListNewsgroups.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/nntp/ListNewsgroups.java Mon Mar  5 21:02:08
2012
@@ -33,7 +33,7 @@ import org.apache.commons.net.nntp.Newsg
 public final class ListNewsgroups
 {
 
-    public final static void main(String[] args)
+    public static void main(String[] args)
     {
         if (args.length < 1)
         {

Modified: commons/proper/net/trunk/src/main/java/examples/nntp/PostMessage.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/nntp/PostMessage.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/nntp/PostMessage.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/nntp/PostMessage.java Mon Mar  5 21:02:08
2012
@@ -42,7 +42,7 @@ import org.apache.commons.net.nntp.Simpl
 public final class PostMessage
 {
 
-    public final static void main(String[] args)
+    public static void main(String[] args)
     {
         String from, subject, newsgroup, filename, server, organization;
         String references;

Modified: commons/proper/net/trunk/src/main/java/examples/ntp/NTPClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/ntp/NTPClient.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/ntp/NTPClient.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/ntp/NTPClient.java Mon Mar  5 21:02:08
2012
@@ -147,7 +147,7 @@ public final class NTPClient
                 + ", clock offset(ms)=" + offset); // offset in ms
     }
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
         if (args.length == 0) {
             System.err.println("Usage: NTPClient <hostname-or-address-list>");

Modified: commons/proper/net/trunk/src/main/java/examples/ntp/TimeClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/ntp/TimeClient.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/ntp/TimeClient.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/ntp/TimeClient.java Mon Mar  5 21:02:08
2012
@@ -63,7 +63,7 @@ public final class TimeClient
         client.close();
     }
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
 
         if (args.length == 1)

Modified: commons/proper/net/trunk/src/main/java/examples/unix/chargen.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/chargen.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/chargen.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/chargen.java Mon Mar  5 21:02:08
2012
@@ -118,7 +118,7 @@ public final class chargen
     }
 
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
 
         if (args.length == 1)

Modified: commons/proper/net/trunk/src/main/java/examples/unix/daytime.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/daytime.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/daytime.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/daytime.java Mon Mar  5 21:02:08
2012
@@ -61,7 +61,7 @@ public final class daytime
     }
 
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
 
         if (args.length == 1)

Modified: commons/proper/net/trunk/src/main/java/examples/unix/echo.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/echo.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/echo.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/echo.java Mon Mar  5 21:02:08 2012
@@ -130,7 +130,7 @@ public final class echo
     }
 
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
 
         if (args.length == 1)

Modified: commons/proper/net/trunk/src/main/java/examples/unix/finger.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/finger.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/finger.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/finger.java Mon Mar  5 21:02:08 2012
@@ -36,7 +36,7 @@ import org.apache.commons.net.finger.Fin
 public final class finger
 {
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
         boolean longOutput = false;
         int arg = 0, index;

Modified: commons/proper/net/trunk/src/main/java/examples/unix/fwhois.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/fwhois.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/fwhois.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/fwhois.java Mon Mar  5 21:02:08 2012
@@ -31,7 +31,7 @@ import org.apache.commons.net.whois.Whoi
 public final class fwhois
 {
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
         int index;
         String handle, host;

Modified: commons/proper/net/trunk/src/main/java/examples/unix/rdate.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/rdate.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/rdate.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/rdate.java Mon Mar  5 21:02:08 2012
@@ -62,7 +62,7 @@ public final class rdate
     }
 
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
 
         if (args.length == 1)

Modified: commons/proper/net/trunk/src/main/java/examples/unix/rexec.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/rexec.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/rexec.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/rexec.java Mon Mar  5 21:02:08 2012
@@ -40,7 +40,7 @@ import examples.util.IOUtil;
 public final class rexec
 {
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
         String server, username, password, command;
         RExecClient client;

Modified: commons/proper/net/trunk/src/main/java/examples/unix/rlogin.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/rlogin.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/rlogin.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/rlogin.java Mon Mar  5 21:02:08 2012
@@ -51,7 +51,7 @@ import examples.util.IOUtil;
 public final class rlogin
 {
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
         String server, localuser, remoteuser, terminal;
         RLoginClient client;

Modified: commons/proper/net/trunk/src/main/java/examples/unix/rshell.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/rshell.java?rev=1297229&r1=1297228&r2=1297229&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/rshell.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/rshell.java Mon Mar  5 21:02:08 2012
@@ -44,7 +44,7 @@ import examples.util.IOUtil;
 public final class rshell
 {
 
-    public static final void main(String[] args)
+    public static void main(String[] args)
     {
         String server, localuser, remoteuser, command;
         RCommandClient client;



Mime
View raw message