FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.3.9

Threshold is medium

Effort is min

Summary

ClassesBugsErrorsMissing Classes
525400

gnu.io.CommPortIdentifier

BugCategoryDetailsLinePriority
Inconsistent synchronization of gnu.io.CommPortIdentifier.commport; locked 83% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNC236Medium
Null pointer dereference of System.err in gnu.io.CommPortIdentifier.<static initializer>()CORRECTNESSNP_ALWAYS_NULL72High
Null pointer dereference of System.err in gnu.io.CommPortIdentifier.getPortIdentifiers()CORRECTNESSNP_ALWAYS_NULL265High

gnu.io.Configure

BugCategoryDetailsLinePriority
new gnu.io.Configure() invokes inefficient new String(String) constructorPERFORMANCEDM_STRING_CTOR178Medium
gnu.io.Configure.saveSpecifiedPorts() invokes inefficient new String(String) constructorPERFORMANCEDM_STRING_CTOR36Medium
Null pointer dereference of System.out in gnu.io.Configure.saveSpecifiedPorts()CORRECTNESSNP_ALWAYS_NULL51High
Null pointer dereference of System.out in gnu.io.Configure.saveSpecifiedPorts()CORRECTNESSNP_ALWAYS_NULL54High

gnu.io.I2C

BugCategoryDetailsLinePriority
Null pointer dereference of System.out in gnu.io.I2C.enableReceiveThreshold(int)CORRECTNESSNP_ALWAYS_NULL174High
Null pointer dereference of System.out in gnu.io.I2C.enableReceiveTimeout(int)CORRECTNESSNP_ALWAYS_NULL152High
Null pointer dereference of System.err in gnu.io.I2C.sendEvent(int, boolean)CORRECTNESSNP_ALWAYS_NULL300High

gnu.io.I2C$I2CInputStream

BugCategoryDetailsLinePriority
Dead store to $L7 in gnu.io.I2C$I2CInputStream.read(byte[], int, int)STYLEDLS_DEAD_LOCAL_STORE410Medium

gnu.io.LPRPort

BugCategoryDetailsLinePriority
gnu.io.LPRPort.close() forces garbage collection; extremely dubious except in benchmarking codePERFORMANCEDM_GC122High
Inconsistent synchronization of gnu.io.LPRPort.monThread; locked 78% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNC190Medium
Null pointer dereference of System.out in gnu.io.LPRPort.notifyOnBuffer(boolean)CORRECTNESSNP_ALWAYS_NULL264High
Null pointer dereference of System.out in gnu.io.LPRPort.notifyOnError(boolean)CORRECTNESSNP_ALWAYS_NULL259High
Null pointer dereference of System.out in gnu.io.LPRPort.restart()CORRECTNESSNP_ALWAYS_NULL97High
Null pointer dereference of System.err in gnu.io.LPRPort.sendEvent(int, boolean)CORRECTNESSNP_ALWAYS_NULL213High
Null pointer dereference of System.out in gnu.io.LPRPort.suspend()CORRECTNESSNP_ALWAYS_NULL101High
gnu.io.LPRPort.sendEvent(int, boolean) calls Thread.sleep() with a lock heldMT_CORRECTNESSSWL_SLEEP_WITH_LOCK_HELD226Medium

gnu.io.RS485

BugCategoryDetailsLinePriority
Null pointer dereference of System.out in gnu.io.RS485.enableReceiveThreshold(int)CORRECTNESSNP_ALWAYS_NULL171High
Null pointer dereference of System.out in gnu.io.RS485.enableReceiveTimeout(int)CORRECTNESSNP_ALWAYS_NULL149High
Null pointer dereference of System.err in gnu.io.RS485.sendEvent(int, boolean)CORRECTNESSNP_ALWAYS_NULL297High

gnu.io.RS485$RS485InputStream

BugCategoryDetailsLinePriority
Dead store to $L7 in gnu.io.RS485$RS485InputStream.read(byte[], int, int)STYLEDLS_DEAD_LOCAL_STORE407Medium

gnu.io.RXTXCommDriver

BugCategoryDetailsLinePriority
gnu.io.RXTXCommDriver.getValidPortPrefixes(String[]) invokes inefficient new String(String) constructorPERFORMANCEDM_STRING_CTOR119Medium
gnu.io.RXTXCommDriver.registerScannedPorts(int) invokes inefficient new String(String) constructorPERFORMANCEDM_STRING_CTOR423Medium
gnu.io.RXTXCommDriver.registerValidPorts(String[], String[], int) invokes inefficient new String(String) constructorPERFORMANCEDM_STRING_CTOR236Medium
The method name gnu.io.RXTXCommDriver.Report(String) doesn't start with a lower case letterBAD_PRACTICENM_METHOD_NAMING_CONVENTION827Medium
Null pointer dereference of System.out in gnu.io.RXTXCommDriver.<static initializer>()CORRECTNESSNP_ALWAYS_NULL68High
Null pointer dereference of System.out in gnu.io.RXTXCommDriver.Report(String)CORRECTNESSNP_ALWAYS_NULL827High
gnu.io.RXTXCommDriver.registerSpecifiedPorts(int) may fail to close streamBAD_PRACTICEOS_OPEN_STREAM359Medium
Exception is caught when Exception is not thrown in gnu.io.RXTXCommDriver.registerSpecifiedPorts(int)STYLEREC_CATCH_EXCEPTION367Medium
Useless control flow to next line in gnu.io.RXTXCommDriver.registerScannedPorts(int)STYLEUCF_USELESS_CONTROL_FLOW_NEXT_LINE473High

gnu.io.RXTXPort

BugCategoryDetailsLinePriority
gnu.io.RXTXPort.finalize() explicitly invokes gnu.io.Zystem.finalize()BAD_PRACTICEFI_EXPLICIT_INVOCATION1065High
The method name gnu.io.RXTXPort.NativegetReceiveTimeout() doesn't start with a lower case letterBAD_PRACTICENM_METHOD_NAMING_CONVENTIONMedium
Null pointer dereference of System.err in gnu.io.RXTXPort.sendEvent(int, boolean)CORRECTNESSNP_ALWAYS_NULL715High
gnu.io.RXTXPort.close() calls Thread.sleep() with a lock heldMT_CORRECTNESSSWL_SLEEP_WITH_LOCK_HELD1025Medium

gnu.io.RXTXPort$MonitorThread

BugCategoryDetailsLinePriority
gnu.io.RXTXPort$MonitorThread.finalize() is empty and should be deletedBAD_PRACTICEFI_EMPTY1583Medium

gnu.io.Raw

BugCategoryDetailsLinePriority
Null pointer dereference of System.out in gnu.io.Raw.enableReceiveThreshold(int)CORRECTNESSNP_ALWAYS_NULL172High
Null pointer dereference of System.out in gnu.io.Raw.enableReceiveTimeout(int)CORRECTNESSNP_ALWAYS_NULL150High
Null pointer dereference of System.err in gnu.io.Raw.sendEvent(int, boolean)CORRECTNESSNP_ALWAYS_NULL298High

gnu.io.Raw$RawInputStream

BugCategoryDetailsLinePriority
Dead store to $L7 in gnu.io.Raw$RawInputStream.read(byte[], int, int)STYLEDLS_DEAD_LOCAL_STORE408Medium

gnu.io.Zystem

BugCategoryDetailsLinePriority
gnu.io.Zystem.finalize() is public; should be protectedMALICIOUS_CODEFI_PUBLIC_SHOULD_BE_PROTECTED159Medium
Null pointer dereference of System.out in gnu.io.Zystem.filewrite(String)CORRECTNESSNP_ALWAYS_NULL172High
Null pointer dereference of System.out in gnu.io.Zystem.report(String)CORRECTNESSNP_ALWAYS_NULL184High
Null pointer dereference of System.out in gnu.io.Zystem.reportln()CORRECTNESSNP_ALWAYS_NULL221High
Null pointer dereference of System.out in gnu.io.Zystem.reportln(String)CORRECTNESSNP_ALWAYS_NULL254High
Exception is caught when Exception is not thrown in gnu.io.Zystem.filewrite(String)STYLEREC_CATCH_EXCEPTION171Medium
Write to static field gnu.io.Zystem.mode from instance method new gnu.io.Zystem(int)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD53High
Write to static field gnu.io.Zystem.mode from instance method gnu.io.Zystem.finalize()STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD159High
Write to static field gnu.io.Zystem.target from instance method gnu.io.Zystem.finalize()STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD160High
Write to static field gnu.io.Zystem.target from instance method gnu.io.Zystem.startLogger(String)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD135High
Write to static field gnu.io.Zystem.mode from instance method new gnu.io.Zystem()STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD75Medium