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 2023/11/05 19:31:51 UTC

(commons-net) branch master updated: Make private class final

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 e37e3eb0 Make private class final
e37e3eb0 is described below

commit e37e3eb060e285642c85e123cde1029506d2b786
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 5 14:31:46 2023 -0500

    Make private class final
---
 src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java | 2 +-
 src/test/java/org/apache/commons/net/tftp/TFTPServer.java         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java b/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java
index a95e2195..c2ef66be 100644
--- a/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java
+++ b/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java
@@ -32,7 +32,7 @@ public class TelnetClientTest extends TestCase implements TelnetNotificationHand
     /**
      * Handy holder to hold both sides of the connection used in testing for clarity.
      */
-    private class TestConnection {
+    private final class TestConnection {
         private final TelnetTestSimpleServer server;
         private final TelnetClient client;
         private final int port;
diff --git a/src/test/java/org/apache/commons/net/tftp/TFTPServer.java b/src/test/java/org/apache/commons/net/tftp/TFTPServer.java
index 7a5c9c04..d3d1ea8f 100644
--- a/src/test/java/org/apache/commons/net/tftp/TFTPServer.java
+++ b/src/test/java/org/apache/commons/net/tftp/TFTPServer.java
@@ -81,7 +81,7 @@ public class TFTPServer implements Runnable, AutoCloseable {
     /*
      * An ongoing transfer.
      */
-    private class TFTPTransfer implements Runnable {
+    private final class TFTPTransfer implements Runnable {
         private final TFTPPacket tftpPacket;
 
         private boolean shutdownTransfer;