Apache Commons logo Apache Commons Net™ logo

SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.7.3

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
233 47 0 0

Files

Class Bugs
org.apache.commons.net.PrintCommandListener 4
org.apache.commons.net.examples.cidr.SubnetUtilsExample 1
org.apache.commons.net.examples.ftp.FTPClientExample 1
org.apache.commons.net.examples.ftp.ServerToServerFTP 1
org.apache.commons.net.examples.ftp.TFTPExample 2
org.apache.commons.net.examples.mail.IMAPExportMbox 2
org.apache.commons.net.examples.mail.IMAPImportMbox 1
org.apache.commons.net.examples.mail.POP3Mail 1
org.apache.commons.net.examples.mail.SMTPMail 3
org.apache.commons.net.examples.mail.Utils 1
org.apache.commons.net.examples.nntp.ArticleReader 1
org.apache.commons.net.examples.nntp.ExtendedNNTPOps 1
org.apache.commons.net.examples.nntp.MessageThreading 1
org.apache.commons.net.examples.nntp.PostMessage 3
org.apache.commons.net.examples.telnet.TelnetClientExample 3
org.apache.commons.net.examples.unix.chargen 2
org.apache.commons.net.examples.unix.daytime 1
org.apache.commons.net.examples.unix.echo 6
org.apache.commons.net.examples.unix.finger 1
org.apache.commons.net.examples.unix.fwhois 1
org.apache.commons.net.examples.unix.rdate 1
org.apache.commons.net.examples.unix.rexec 1
org.apache.commons.net.examples.unix.rlogin 1
org.apache.commons.net.examples.unix.rshell 1
org.apache.commons.net.telnet.TelnetOutputStream 1
org.apache.commons.net.tftp.TFTPErrorPacket 2
org.apache.commons.net.tftp.TFTPRequestPacket 2
org.apache.commons.net.util.SSLSocketUtils 1

org.apache.commons.net.PrintCommandListener

Bug Category Details Line Priority
Found reliance on default encoding in new org.apache.commons.net.PrintCommandListener(PrintStream): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 43 High
Found reliance on default encoding in new org.apache.commons.net.PrintCommandListener(PrintStream, boolean): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 55 High
Found reliance on default encoding in new org.apache.commons.net.PrintCommandListener(PrintStream, boolean, char): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 68 High
Found reliance on default encoding in new org.apache.commons.net.PrintCommandListener(PrintStream, boolean, char, boolean): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 82 High

org.apache.commons.net.examples.cidr.SubnetUtilsExample

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.cidr.SubnetUtilsExample.main(String[]): new java.util.Scanner(InputStream) I18N DM_DEFAULT_ENCODING 53 High

org.apache.commons.net.examples.ftp.FTPClientExample

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.ftp.FTPClientExample.main(String[]): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 283 High

org.apache.commons.net.examples.ftp.ServerToServerFTP

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.ftp.ServerToServerFTP.main(String[]): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 77 High

org.apache.commons.net.examples.ftp.TFTPExample

Bug Category Details Line Priority
org.apache.commons.net.examples.ftp.TFTPExample.receive(int, String, String, String, TFTPClient) may fail to clean up java.io.OutputStream on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 173 Medium
org.apache.commons.net.examples.ftp.TFTPExample.send(int, String, String, String, TFTPClient) may fail to clean up java.io.InputStream on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 212 Medium

org.apache.commons.net.examples.mail.IMAPExportMbox

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.mail.IMAPExportMbox.main(String[]): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 334 High
Found reliance on default encoding in org.apache.commons.net.examples.mail.IMAPExportMbox.main(String[]): new java.io.FileWriter(File, boolean) I18N DM_DEFAULT_ENCODING 323 High

org.apache.commons.net.examples.mail.IMAPImportMbox

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.mail.IMAPImportMbox.main(String[]): new java.io.FileReader(String) I18N DM_DEFAULT_ENCODING 137 High

org.apache.commons.net.examples.mail.POP3Mail

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.mail.POP3Mail.main(String[]): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 80 High

org.apache.commons.net.examples.mail.SMTPMail

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.mail.SMTPMail.main(String[]): new java.io.FileReader(String) I18N DM_DEFAULT_ENCODING 104 High
Found reliance on default encoding in org.apache.commons.net.examples.mail.SMTPMail.main(String[]): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 64 High
Found reliance on default encoding in org.apache.commons.net.examples.mail.SMTPMail.main(String[]): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 110 High

org.apache.commons.net.examples.mail.Utils

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.mail.Utils.getPassword(String, String): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 43 High

org.apache.commons.net.examples.nntp.ArticleReader

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.nntp.ArticleReader.main(String[]): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 47 High

org.apache.commons.net.examples.nntp.ExtendedNNTPOps

Bug Category Details Line Priority
Found reliance on default encoding in new org.apache.commons.net.examples.nntp.ExtendedNNTPOps(): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 50 High

org.apache.commons.net.examples.nntp.MessageThreading

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.nntp.MessageThreading.main(String[]): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 45 High

org.apache.commons.net.examples.nntp.PostMessage

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.nntp.PostMessage.main(String[]): new java.io.FileReader(String) I18N DM_DEFAULT_ENCODING 126 High
Found reliance on default encoding in org.apache.commons.net.examples.nntp.PostMessage.main(String[]): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 61 High
Found reliance on default encoding in org.apache.commons.net.examples.nntp.PostMessage.main(String[]): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 133 High

org.apache.commons.net.examples.telnet.TelnetClientExample

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.telnet.TelnetClientExample.main(String[]): new String(byte[]) I18N DM_DEFAULT_ENCODING 131 High
Found reliance on default encoding in org.apache.commons.net.examples.telnet.TelnetClientExample.main(String[]): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 115 High
Found reliance on default encoding in org.apache.commons.net.examples.telnet.TelnetClientExample.run(): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 251 High

org.apache.commons.net.examples.unix.chargen

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.unix.chargen.chargenTCP(String): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 48 High
The class name org.apache.commons.net.examples.unix.chargen doesn't start with an upper case letter BAD_PRACTICE NM_CLASS_NAMING_CONVENTION 38-123 Medium

org.apache.commons.net.examples.unix.daytime

Bug Category Details Line Priority
The class name org.apache.commons.net.examples.unix.daytime doesn't start with an upper case letter BAD_PRACTICE NM_CLASS_NAMING_CONVENTION 33-76 Medium

org.apache.commons.net.examples.unix.echo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.examples.unix.echo.echoTCP(String): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 52 High
Found reliance on default encoding in org.apache.commons.net.examples.unix.echo.echoTCP(String): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 53 High
Found reliance on default encoding in org.apache.commons.net.examples.unix.echo.echoUDP(String): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 73 High
Found reliance on default encoding in org.apache.commons.net.examples.unix.echo.echoUDP(String): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 105 High
Found reliance on default encoding in org.apache.commons.net.examples.unix.echo.echoUDP(String): String.getBytes() I18N DM_DEFAULT_ENCODING 85 High
The class name org.apache.commons.net.examples.unix.echo doesn't start with an upper case letter BAD_PRACTICE NM_CLASS_NAMING_CONVENTION 41-136 Medium

org.apache.commons.net.examples.unix.finger

Bug Category Details Line Priority
The class name org.apache.commons.net.examples.unix.finger doesn't start with an upper case letter BAD_PRACTICE NM_CLASS_NAMING_CONVENTION 32-118 Medium

org.apache.commons.net.examples.unix.fwhois

Bug Category Details Line Priority
The class name org.apache.commons.net.examples.unix.fwhois doesn't start with an upper case letter BAD_PRACTICE NM_CLASS_NAMING_CONVENTION 29-73 Medium

org.apache.commons.net.examples.unix.rdate

Bug Category Details Line Priority
The class name org.apache.commons.net.examples.unix.rdate doesn't start with an upper case letter BAD_PRACTICE NM_CLASS_NAMING_CONVENTION 34-76 Medium

org.apache.commons.net.examples.unix.rexec

Bug Category Details Line Priority
The class name org.apache.commons.net.examples.unix.rexec doesn't start with an upper case letter BAD_PRACTICE NM_CLASS_NAMING_CONVENTION 36-82 Medium

org.apache.commons.net.examples.unix.rlogin

Bug Category Details Line Priority
The class name org.apache.commons.net.examples.unix.rlogin doesn't start with an upper case letter BAD_PRACTICE NM_CLASS_NAMING_CONVENTION 43-89 Medium

org.apache.commons.net.examples.unix.rshell

Bug Category Details Line Priority
The class name org.apache.commons.net.examples.unix.rshell doesn't start with an upper case letter BAD_PRACTICE NM_CLASS_NAMING_CONVENTION 38-84 Medium

org.apache.commons.net.telnet.TelnetOutputStream

Bug Category Details Line Priority
Unread field: org.apache.commons.net.telnet.TelnetOutputStream.convertCRtoCRLF; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 36 Medium

org.apache.commons.net.tftp.TFTPErrorPacket

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.tftp.TFTPErrorPacket.newDatagram(): String.getBytes() I18N DM_DEFAULT_ENCODING 160 High
Found reliance on default encoding in org.apache.commons.net.tftp.TFTPErrorPacket.newDatagram(DatagramPacket, byte[]): String.getBytes() I18N DM_DEFAULT_ENCODING 186 High

org.apache.commons.net.tftp.TFTPRequestPacket

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.commons.net.tftp.TFTPRequestPacket.newDatagram(): String.getBytes() I18N DM_DEFAULT_ENCODING 172 High
Found reliance on default encoding in org.apache.commons.net.tftp.TFTPRequestPacket.newDatagram(DatagramPacket, byte[]): String.getBytes() I18N DM_DEFAULT_ENCODING 197 High

org.apache.commons.net.util.SSLSocketUtils

Bug Category Details Line Priority
Redundant nullcheck of sslParameters, which is known to be non-null in org.apache.commons.net.util.SSLSocketUtils.enableEndpointNameVerification(SSLSocket) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 38 Medium