Apache Commons logo Apache Commons Net™ logo

SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.0.4

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
220 48 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.examples.util.IOUtil$2 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.ListenerList 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 47 High
Found reliance on default encoding in new org.apache.commons.net.PrintCommandListener(PrintStream, boolean): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 60 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 74 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 90 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 60 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 312 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 85 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 224 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 165 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 213 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 200 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 111 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 103 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 112 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 68 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 120 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 51 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 39 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 49 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 134 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 66 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 143 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 164 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 140 High
Found reliance on default encoding in org.apache.commons.net.examples.telnet.TelnetClientExample.run(): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 328 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 54 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 42-150 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 36-96 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 57 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 59 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 83 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 123 High
Found reliance on default encoding in org.apache.commons.net.examples.unix.echo.echoUDP(String): String.getBytes() I18N DM_DEFAULT_ENCODING 96 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 42-168 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 35-145 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 30-86 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 37-96 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 39-108 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 50-119 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 43-112 Medium

org.apache.commons.net.examples.util.IOUtil$2

Bug Category Details Line Priority
org.apache.commons.net.examples.util.IOUtil$2.run() invokes System.exit(...), which shuts down the entire virtual machine BAD_PRACTICE DM_EXIT 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 39 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 200 High
Found reliance on default encoding in org.apache.commons.net.tftp.TFTPErrorPacket.newDatagram(DatagramPacket, byte[]): String.getBytes() I18N DM_DEFAULT_ENCODING 161 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 227 High
Found reliance on default encoding in org.apache.commons.net.tftp.TFTPRequestPacket.newDatagram(DatagramPacket, byte[]): String.getBytes() I18N DM_DEFAULT_ENCODING 190 High

org.apache.commons.net.util.ListenerList

Bug Category Details Line Priority
Class org.apache.commons.net.util.ListenerList defines non-transient non-serializable instance field listeners BAD_PRACTICE SE_BAD_FIELD Not available Medium