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 2024/06/16 13:03:10 UTC

(commons-net) 18/26: Fix PMD UnnecessaryFullyQualifiedName

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 1264b75a7f9033106359c0359a218715ae079cba
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jun 16 08:12:46 2024 -0400

    Fix PMD UnnecessaryFullyQualifiedName
---
 src/main/java/org/apache/commons/net/tftp/TFTPReadRequestPacket.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/net/tftp/TFTPReadRequestPacket.java b/src/main/java/org/apache/commons/net/tftp/TFTPReadRequestPacket.java
index 52729c14..5d64aa8a 100644
--- a/src/main/java/org/apache/commons/net/tftp/TFTPReadRequestPacket.java
+++ b/src/main/java/org/apache/commons/net/tftp/TFTPReadRequestPacket.java
@@ -45,7 +45,7 @@ public final class TFTPReadRequestPacket extends TFTPRequestPacket {
      * @throws TFTPPacketException If the datagram isn't a valid TFTP request packet.
      */
     TFTPReadRequestPacket(final DatagramPacket datagram) throws TFTPPacketException {
-        super(TFTPPacket.READ_REQUEST, datagram);
+        super(READ_REQUEST, datagram);
     }
 
     /**
@@ -57,7 +57,7 @@ public final class TFTPReadRequestPacket extends TFTPRequestPacket {
      * @param mode        The requested transfer mode. This should be on of the TFTP class MODE constants (e.g., TFTP.NETASCII_MODE).
      */
     public TFTPReadRequestPacket(final InetAddress destination, final int port, final String fileName, final int mode) {
-        super(destination, port, TFTPPacket.READ_REQUEST, fileName, mode);
+        super(destination, port, READ_REQUEST, fileName, mode);
     }
 
     /**