Skip to content

Commit 7ffbb8f

Browse files
committed
Ignore some PMD complaints in test code
1 parent 71ff0ad commit 7ffbb8f

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/org/apache/commons/net/examples/telnet/TelnetClientExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* see the result. Type OPT to see a report of the state of the first 25 options.
4242
*/
4343
public class TelnetClientExample implements Runnable, TelnetNotificationHandler {
44-
private static TelnetClient tc;
44+
private static TelnetClient tc; //NOPMD example code
4545

4646
/**
4747
* Main for the TelnetClientExample.

src/test/java/org/apache/commons/net/daytime/DaytimeTCPClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
class DaytimeTCPClientTest {
4242

43-
private static MockDaytimeTCPServer mockDaytimeTCPServer;
43+
private static MockDaytimeTCPServer mockDaytimeTCPServer; //NOPMD
4444

4545
@AfterAll
4646
public static void afterAll() throws IOException {

src/test/java/org/apache/commons/net/ftp/AbstractFtpsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
*/
5858
public abstract class AbstractFtpsTest {
5959

60-
private static int SocketPort;
61-
private static FtpServer EmbeddedFtpServer;
60+
private static int SocketPort; //NOPMD test code
61+
private static FtpServer EmbeddedFtpServer; //NOPMD test code
6262
protected static final boolean IMPLICIT = false;
6363
protected static final long TEST_TIMEOUT = 10000; // individual test timeout
6464
private static final boolean TRACE_CALLS = Boolean.parseBoolean(System.getenv("TRACE_CALLS"));

src/test/java/org/apache/commons/net/ntp/TestNtpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737
class TestNtpClient {
3838

39-
private static SimpleNTPServer server;
39+
private static SimpleNTPServer server; //NOPMD test code
4040

4141
@BeforeAll
4242
public static void oneTimeSetUp() throws IOException {

src/test/java/org/apache/commons/net/tftp/TFTPTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*/
4242
class TFTPTest {
4343
private static final int SERVER_PORT = 6902;
44-
private static TFTPServer tftpS;
44+
private static TFTPServer tftpS; //NOPMD test code
4545
private static final File SERVER_DIR = FileUtils.getTempDirectory();
4646
private static final String FILE_PREFIX = "tftp-";
4747
private static final File[] FILES = new File[8];

0 commit comments

Comments
 (0)