FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is experimental

Effort is max

Summary

Classes Bugs Errors Missing Classes
22 13 0 0

net.sf.atmodem4j.spsw.AbstractSerialPortSocket

Bug Category Details Line Priority
Unchecked/unconfirmed cast from Exception to java.io.IOException of return value in net.sf.atmodem4j.spsw.AbstractSerialPortSocket.getInputStream() STYLE BC_UNCONFIRMED_CAST_OF_RETURN_VALUE 327 Low
Unchecked/unconfirmed cast from Exception to java.io.IOException of return value in net.sf.atmodem4j.spsw.AbstractSerialPortSocket.getOutputStream() STYLE BC_UNCONFIRMED_CAST_OF_RETURN_VALUE 351 Low
Use of non-localized String.toUpperCase() or String.toLowerCase() in net.sf.atmodem4j.spsw.AbstractSerialPortSocket.getArch() I18N DM_CONVERT_CASE 100 Low
Found reliance on default encoding in net.sf.atmodem4j.spsw.AbstractSerialPortSocket.getArch(): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 97 High
Inconsistent synchronization of net.sf.atmodem4j.spsw.AbstractSerialPortSocket.open; locked 50% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 363 Low
Exception is caught when Exception is not thrown in net.sf.atmodem4j.spsw.AbstractSerialPortSocket.getArch() STYLE REC_CATCH_EXCEPTION 106 Medium
Useless control flow in net.sf.atmodem4j.spsw.AbstractSerialPortSocket.loadNativeLib() STYLE UCF_USELESS_CONTROL_FLOW 241 Low

net.sf.atmodem4j.spsw.SerialPortList

Bug Category Details Line Priority
Possible null pointer dereference in net.sf.atmodem4j.spsw.SerialPortList.getUnixBasedPortNames(String, Pattern, Comparator, boolean) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 383 Medium

net.sf.atmodem4j.spsw.SerialPortList$1

Bug Category Details Line Priority
net.sf.atmodem4j.spsw.SerialPortList$1.getNumberAndLastIndex(String, int) might ignore java.lang.Exception BAD_PRACTICE DE_MIGHT_IGNORE 184 Low
Boxing/unboxing to parse a primitive net.sf.atmodem4j.spsw.SerialPortList$1.getNumberAndLastIndex(String, int) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 183 High
Exception is caught when Exception is not thrown in net.sf.atmodem4j.spsw.SerialPortList$1.getNumberAndLastIndex(String, int) STYLE REC_CATCH_EXCEPTION 184
net.sf.atmodem4j.spsw.SerialPortList$1.getNumberAndLastIndex(String, int) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 177 Medium

net.sf.atmodem4j.spsw.SerialPortSocket$SerialPortSocketFactory

Bug Category Details Line Priority
net.sf.atmodem4j.spsw.SerialPortSocket$SerialPortSocketFactory.createSerialPortSocket(String) uses the same code for two switch clauses STYLE DB_DUPLICATE_SWITCH_CLAUSES 54 Low