The following document contains the results of FindBugs Report
FindBugs Version is 1.3.9
Threshold is
Effort is min
| Classes | Bugs | Errors | Missing Classes |
|---|---|---|---|
| 104 | 24 | 0 | 0 |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| integral division result cast to double or float in net.miginfocom.demo.CallbackDemo$2.paintComponent(Graphics) | STYLE | ICAST_IDIV_CAST_TO_DOUBLE | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Write to static field net.miginfocom.demo.HiDPISimulator.GUI_BUF from instance method net.miginfocom.demo.HiDPISimulator$2.actionPerformed(ActionEvent) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Write to static field net.miginfocom.demo.HiDPISimulator.GUI_BUF from instance method net.miginfocom.demo.HiDPISimulator$3.actionPerformed(ActionEvent) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | Medium | |
| Write to static field net.miginfocom.demo.HiDPISimulator.PAINT_GHOSTED from instance method net.miginfocom.demo.HiDPISimulator$3.actionPerformed(ActionEvent) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Write to static field net.miginfocom.demo.HiDPISimulator.GUI_BUF from instance method net.miginfocom.demo.HiDPISimulator$4.itemStateChanged(ItemEvent) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | Medium | |
| Write to static field net.miginfocom.demo.HiDPISimulator.SCALE_LAYOUT from instance method net.miginfocom.demo.HiDPISimulator$4.itemStateChanged(ItemEvent) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Write to static field net.miginfocom.demo.HiDPISimulator.GUI_BUF from instance method net.miginfocom.demo.HiDPISimulator$5.itemStateChanged(ItemEvent) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | Medium | |
| Write to static field net.miginfocom.demo.HiDPISimulator.SCALE_FONTS from instance method net.miginfocom.demo.HiDPISimulator$5.itemStateChanged(ItemEvent) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | Medium | |
| Write to static field net.miginfocom.demo.HiDPISimulator.SCALE_LAF from instance method net.miginfocom.demo.HiDPISimulator$5.itemStateChanged(ItemEvent) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Write to static field net.miginfocom.demo.HiDPISimulator.GUI_BUF from instance method net.miginfocom.demo.HiDPISimulator$6.itemStateChanged(ItemEvent) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| new net.miginfocom.demo.SwingDemo() invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | Medium | |
| Private method net.miginfocom.demo.SwingDemo.createPanel() is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Write to static field net.miginfocom.demo.SwtDemo.display from instance method new net.miginfocom.demo.SwtDemo() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | High |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| net.miginfocom.demo.SwtDemo$3.run() invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Switch statement found in net.miginfocom.layout.CC.cell(int[]) where one case falls through to the next case | STYLE | SF_SWITCH_FALLTHROUGH | Medium | |
| Switch statement found in net.miginfocom.layout.CC.endGroup(String[]) where one case falls through to the next case | STYLE | SF_SWITCH_FALLTHROUGH | Medium | |
| Switch statement found in net.miginfocom.layout.CC.gap(String[]) where one case falls through to the next case | STYLE | SF_SWITCH_FALLTHROUGH | Medium | |
| Switch statement found in net.miginfocom.layout.CC.grow(float[]) where one case falls through to the next case | STYLE | SF_SWITCH_FALLTHROUGH | Medium | |
| Switch statement found in net.miginfocom.layout.CC.growPrio(int[]) where one case falls through to the next case | STYLE | SF_SWITCH_FALLTHROUGH | Medium | |
| Switch statement found in net.miginfocom.layout.CC.shrink(float[]) where one case falls through to the next case | STYLE | SF_SWITCH_FALLTHROUGH | Medium | |
| Switch statement found in net.miginfocom.layout.CC.shrinkPrio(int[]) where one case falls through to the next case | STYLE | SF_SWITCH_FALLTHROUGH | Medium | |
| Switch statement found in net.miginfocom.layout.CC.sizeGroup(String[]) where one case falls through to the next case | STYLE | SF_SWITCH_FALLTHROUGH | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Check for oddness that won't work for negative numbers in net.miginfocom.layout.ConstraintParser.parseInsets(String, boolean) | STYLE | IM_BAD_CHECK_FOR_ODD | Medium |
| Bug | Category | Details | Line | Priority |
|---|---|---|---|---|
| Exception is caught when Exception is not thrown in net.miginfocom.swing.SwingComponentWrapper.getBaseline(int, int) | STYLE | REC_CATCH_EXCEPTION | Medium |