You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/01/01 01:39:55 UTC
[commons-net] branch master updated: Fix Checkstyle errors.
This is an automated email from the ASF dual-hosted git repository.
ggregory 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 31ce619 Fix Checkstyle errors.
31ce619 is described below
commit 31ce619771eca89a2c1ee30d1005e3d82e5d4fa9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Dec 31 20:39:53 2021 -0500
Fix Checkstyle errors.
---
src/main/java/org/apache/commons/net/ProtocolCommandSupport.java | 9 ++++-----
src/main/java/org/apache/commons/net/ftp/FTPFile.java | 8 ++++----
src/main/java/org/apache/commons/net/ntp/TimeStamp.java | 8 ++++----
src/main/java/org/apache/commons/net/util/ListenerList.java | 8 ++++----
4 files changed, 16 insertions(+), 17 deletions(-)
diff --git a/src/main/java/org/apache/commons/net/ProtocolCommandSupport.java b/src/main/java/org/apache/commons/net/ProtocolCommandSupport.java
index 9057d55..0e84200 100644
--- a/src/main/java/org/apache/commons/net/ProtocolCommandSupport.java
+++ b/src/main/java/org/apache/commons/net/ProtocolCommandSupport.java
@@ -18,7 +18,6 @@
package org.apache.commons.net;
import java.io.IOException;
-import java.io.ObjectStreamException;
import java.io.Serializable;
import java.util.EventListener;
@@ -138,14 +137,14 @@ public class ProtocolCommandSupport implements Serializable
Reject attempts to do so until such time as the Serializable attribute can be dropped.
*/
- private void writeObject(java.io.ObjectOutputStream out) throws IOException
+ private void writeObject(final java.io.ObjectOutputStream out) throws IOException
{
throw new UnsupportedOperationException("Serialization is not supported");
}
-
- private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
+
+ private void readObject(final java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
{
throw new UnsupportedOperationException("Serialization is not supported");
}
-
+
}
diff --git a/src/main/java/org/apache/commons/net/ftp/FTPFile.java b/src/main/java/org/apache/commons/net/ftp/FTPFile.java
index fa45ccb..2168986 100644
--- a/src/main/java/org/apache/commons/net/ftp/FTPFile.java
+++ b/src/main/java/org/apache/commons/net/ftp/FTPFile.java
@@ -482,15 +482,15 @@ public class FTPFile implements Serializable {
Reject attempts to do so until such time as the Serializable attribute can be dropped.
*/
- private void writeObject(java.io.ObjectOutputStream out) throws IOException
+ private void writeObject(final java.io.ObjectOutputStream out) throws IOException
{
throw new UnsupportedOperationException("Serialization is not supported");
}
-
- private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
+
+ private void readObject(final java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
{
throw new UnsupportedOperationException("Serialization is not supported");
}
-
+
}
diff --git a/src/main/java/org/apache/commons/net/ntp/TimeStamp.java b/src/main/java/org/apache/commons/net/ntp/TimeStamp.java
index ec66ab7..e79c994 100644
--- a/src/main/java/org/apache/commons/net/ntp/TimeStamp.java
+++ b/src/main/java/org/apache/commons/net/ntp/TimeStamp.java
@@ -455,14 +455,14 @@ public class TimeStamp implements java.io.Serializable, Comparable<TimeStamp>
Reject attempts to do so until such time as the Serializable attribute can be dropped.
*/
- private void writeObject(java.io.ObjectOutputStream out) throws IOException
+ private void writeObject(final java.io.ObjectOutputStream out) throws IOException
{
throw new UnsupportedOperationException("Serialization is not supported");
}
-
- private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
+
+ private void readObject(final java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
{
throw new UnsupportedOperationException("Serialization is not supported");
}
-
+
}
diff --git a/src/main/java/org/apache/commons/net/util/ListenerList.java b/src/main/java/org/apache/commons/net/util/ListenerList.java
index fef969f..8175f93 100644
--- a/src/main/java/org/apache/commons/net/util/ListenerList.java
+++ b/src/main/java/org/apache/commons/net/util/ListenerList.java
@@ -71,14 +71,14 @@ public class ListenerList implements Serializable, Iterable<EventListener>
Reject attempts to do so until such time as the Serializable attribute can be dropped.
*/
- private void writeObject(ObjectOutputStream out) throws IOException
+ private void writeObject(final ObjectOutputStream out) throws IOException
{
throw new UnsupportedOperationException("Serialization is not supported");
}
-
- private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
+
+ private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException
{
throw new UnsupportedOperationException("Serialization is not supported");
}
-
+
}