The following document contains the results of FindBugs Report
FindBugs Version is 1.3.9
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Inconsistent synchronization of gnu.io.CommPortIdentifier.commport; locked 83% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 236 | Medium |
Null pointer dereference of System.err in gnu.io.CommPortIdentifier.<static initializer>() | CORRECTNESS | NP_ALWAYS_NULL | 72 | High |
Null pointer dereference of System.err in gnu.io.CommPortIdentifier.getPortIdentifiers() | CORRECTNESS | NP_ALWAYS_NULL | 265 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
new gnu.io.Configure() invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 178 | Medium |
gnu.io.Configure.saveSpecifiedPorts() invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 36 | Medium |
Null pointer dereference of System.out in gnu.io.Configure.saveSpecifiedPorts() | CORRECTNESS | NP_ALWAYS_NULL | 51 | High |
Null pointer dereference of System.out in gnu.io.Configure.saveSpecifiedPorts() | CORRECTNESS | NP_ALWAYS_NULL | 54 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Null pointer dereference of System.out in gnu.io.I2C.enableReceiveThreshold(int) | CORRECTNESS | NP_ALWAYS_NULL | 174 | High |
Null pointer dereference of System.out in gnu.io.I2C.enableReceiveTimeout(int) | CORRECTNESS | NP_ALWAYS_NULL | 152 | High |
Null pointer dereference of System.err in gnu.io.I2C.sendEvent(int, boolean) | CORRECTNESS | NP_ALWAYS_NULL | 300 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to $L7 in gnu.io.I2C$I2CInputStream.read(byte[], int, int) | STYLE | DLS_DEAD_LOCAL_STORE | 410 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
gnu.io.LPRPort.close() forces garbage collection; extremely dubious except in benchmarking code | PERFORMANCE | DM_GC | 122 | High |
Inconsistent synchronization of gnu.io.LPRPort.monThread; locked 78% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 190 | Medium |
Null pointer dereference of System.out in gnu.io.LPRPort.notifyOnBuffer(boolean) | CORRECTNESS | NP_ALWAYS_NULL | 264 | High |
Null pointer dereference of System.out in gnu.io.LPRPort.notifyOnError(boolean) | CORRECTNESS | NP_ALWAYS_NULL | 259 | High |
Null pointer dereference of System.out in gnu.io.LPRPort.restart() | CORRECTNESS | NP_ALWAYS_NULL | 97 | High |
Null pointer dereference of System.err in gnu.io.LPRPort.sendEvent(int, boolean) | CORRECTNESS | NP_ALWAYS_NULL | 213 | High |
Null pointer dereference of System.out in gnu.io.LPRPort.suspend() | CORRECTNESS | NP_ALWAYS_NULL | 101 | High |
gnu.io.LPRPort.sendEvent(int, boolean) calls Thread.sleep() with a lock held | MT_CORRECTNESS | SWL_SLEEP_WITH_LOCK_HELD | 226 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Null pointer dereference of System.out in gnu.io.RS485.enableReceiveThreshold(int) | CORRECTNESS | NP_ALWAYS_NULL | 171 | High |
Null pointer dereference of System.out in gnu.io.RS485.enableReceiveTimeout(int) | CORRECTNESS | NP_ALWAYS_NULL | 149 | High |
Null pointer dereference of System.err in gnu.io.RS485.sendEvent(int, boolean) | CORRECTNESS | NP_ALWAYS_NULL | 297 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to $L7 in gnu.io.RS485$RS485InputStream.read(byte[], int, int) | STYLE | DLS_DEAD_LOCAL_STORE | 407 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
gnu.io.RXTXCommDriver.getValidPortPrefixes(String[]) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 119 | Medium |
gnu.io.RXTXCommDriver.registerScannedPorts(int) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 423 | Medium |
gnu.io.RXTXCommDriver.registerValidPorts(String[], String[], int) invokes inefficient new String(String) constructor | PERFORMANCE | DM_STRING_CTOR | 236 | Medium |
The method name gnu.io.RXTXCommDriver.Report(String) doesn't start with a lower case letter | BAD_PRACTICE | NM_METHOD_NAMING_CONVENTION | 827 | Medium |
Null pointer dereference of System.out in gnu.io.RXTXCommDriver.<static initializer>() | CORRECTNESS | NP_ALWAYS_NULL | 68 | High |
Null pointer dereference of System.out in gnu.io.RXTXCommDriver.Report(String) | CORRECTNESS | NP_ALWAYS_NULL | 827 | High |
gnu.io.RXTXCommDriver.registerSpecifiedPorts(int) may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 359 | Medium |
Exception is caught when Exception is not thrown in gnu.io.RXTXCommDriver.registerSpecifiedPorts(int) | STYLE | REC_CATCH_EXCEPTION | 367 | Medium |
Useless control flow to next line in gnu.io.RXTXCommDriver.registerScannedPorts(int) | STYLE | UCF_USELESS_CONTROL_FLOW_NEXT_LINE | 473 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
gnu.io.RXTXPort.finalize() explicitly invokes gnu.io.Zystem.finalize() | BAD_PRACTICE | FI_EXPLICIT_INVOCATION | 1065 | High |
The method name gnu.io.RXTXPort.NativegetReceiveTimeout() doesn't start with a lower case letter | BAD_PRACTICE | NM_METHOD_NAMING_CONVENTION | Medium | |
Null pointer dereference of System.err in gnu.io.RXTXPort.sendEvent(int, boolean) | CORRECTNESS | NP_ALWAYS_NULL | 715 | High |
gnu.io.RXTXPort.close() calls Thread.sleep() with a lock held | MT_CORRECTNESS | SWL_SLEEP_WITH_LOCK_HELD | 1025 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
gnu.io.RXTXPort$MonitorThread.finalize() is empty and should be deleted | BAD_PRACTICE | FI_EMPTY | 1583 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Null pointer dereference of System.out in gnu.io.Raw.enableReceiveThreshold(int) | CORRECTNESS | NP_ALWAYS_NULL | 172 | High |
Null pointer dereference of System.out in gnu.io.Raw.enableReceiveTimeout(int) | CORRECTNESS | NP_ALWAYS_NULL | 150 | High |
Null pointer dereference of System.err in gnu.io.Raw.sendEvent(int, boolean) | CORRECTNESS | NP_ALWAYS_NULL | 298 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to $L7 in gnu.io.Raw$RawInputStream.read(byte[], int, int) | STYLE | DLS_DEAD_LOCAL_STORE | 408 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
gnu.io.Zystem.finalize() is public; should be protected | MALICIOUS_CODE | FI_PUBLIC_SHOULD_BE_PROTECTED | 159 | Medium |
Null pointer dereference of System.out in gnu.io.Zystem.filewrite(String) | CORRECTNESS | NP_ALWAYS_NULL | 172 | High |
Null pointer dereference of System.out in gnu.io.Zystem.report(String) | CORRECTNESS | NP_ALWAYS_NULL | 184 | High |
Null pointer dereference of System.out in gnu.io.Zystem.reportln() | CORRECTNESS | NP_ALWAYS_NULL | 221 | High |
Null pointer dereference of System.out in gnu.io.Zystem.reportln(String) | CORRECTNESS | NP_ALWAYS_NULL | 254 | High |
Exception is caught when Exception is not thrown in gnu.io.Zystem.filewrite(String) | STYLE | REC_CATCH_EXCEPTION | 171 | Medium |
Write to static field gnu.io.Zystem.mode from instance method new gnu.io.Zystem(int) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 53 | High |
Write to static field gnu.io.Zystem.mode from instance method gnu.io.Zystem.finalize() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 159 | High |
Write to static field gnu.io.Zystem.target from instance method gnu.io.Zystem.finalize() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 160 | High |
Write to static field gnu.io.Zystem.target from instance method gnu.io.Zystem.startLogger(String) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 135 | High |
Write to static field gnu.io.Zystem.mode from instance method new gnu.io.Zystem() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 75 | Medium |