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

commit 3f8b2831d4168c1d8809760040a5eb0be1b390c2
Author: Gary D. Gregory <[email protected]>
AuthorDate: Wed Jul 16 13:28:57 2025 -0400

    Javadoc
    
    Code style
---
 .../java/org/apache/commons/net/ProtocolCommandSupport.java    | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/commons/net/ProtocolCommandSupport.java 
b/src/main/java/org/apache/commons/net/ProtocolCommandSupport.java
index 75c67085..a15ffd81 100644
--- a/src/main/java/org/apache/commons/net/ProtocolCommandSupport.java
+++ b/src/main/java/org/apache/commons/net/ProtocolCommandSupport.java
@@ -72,8 +72,7 @@ public class ProtocolCommandSupport implements Serializable {
      */
     public void fireCommandSent(final String command, final String message) {
         if (!listeners.isEmpty()) {
-            final ProtocolCommandEvent event;
-            event = new ProtocolCommandEvent(source, command, message);
+            final ProtocolCommandEvent event = new 
ProtocolCommandEvent(source, command, message);
             for (final EventListener listener : listeners) {
                 ((ProtocolCommandListener) 
listener).protocolCommandSent(event);
             }
@@ -81,18 +80,17 @@ public class ProtocolCommandSupport implements Serializable 
{
     }
 
     /**
-     * Fires a ProtocolCommandEvent signalling the reception of a command 
reply to all registered listeners, invoking their
+     * Fires a ProtocolCommandEvent signaling the reception of a command reply 
to all registered listeners, invoking their
      * {@link 
org.apache.commons.net.ProtocolCommandListener#protocolReplyReceived 
protocolReplyReceived()} methods.
      *
-     * @param replyCode The integer code indicating the natureof the reply. 
This will be the protocol integer value for protocols that use integer reply 
codes,
+     * @param replyCode The integer code indicating the nature of the reply. 
This will be the protocol integer value for protocols that use integer reply 
codes,
      *                  or the reply class constant corresponding to the reply 
for protocols like POP3 that use strings like OK rather than integer codes 
(i.e.,
      *                  POP3Repy.OK).
      * @param message   The entire reply as received from the server.
      */
     public void fireReplyReceived(final int replyCode, final String message) {
         if (!listeners.isEmpty()) {
-            final ProtocolCommandEvent event;
-            event = new ProtocolCommandEvent(source, replyCode, message);
+            final ProtocolCommandEvent event = new 
ProtocolCommandEvent(source, replyCode, message);
             for (final EventListener listener : listeners) {
                 ((ProtocolCommandListener) 
listener).protocolReplyReceived(event);
             }

Reply via email to