The following document contains the results of FindBugs Report
FindBugs Version is 1.2.1
Threshold is Normal
Effort is Default
| Classes | Bugs | Errors | Missing Classes |
|---|---|---|---|
| 653 | 39 | 0 | 0 |
| Bug | Category | Details | Line |
|---|---|---|---|
| int division result cast to double or float in net.miginfocom.demo.CallbackDemo$2.paintComponent(Graphics) | STYLE | ICAST_IDIV_CAST_TO_DOUBLE | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| 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 | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| 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 | Not available |
| 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 | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| 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 | Not available |
| 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 | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| 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 | Not available |
| 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 | Not available |
| 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 | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| 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 | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| net.miginfocom.demo.SwingDemo.SwingDemo() invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | Not available |
| Class net.miginfocom.demo.SwingDemo defines non-transient non-serializable instance field constraintListener | BAD_PRACTICE | SE_BAD_FIELD | Not available |
| Class net.miginfocom.demo.SwingDemo defines non-transient non-serializable instance field toolTipListener | BAD_PRACTICE | SE_BAD_FIELD | Not available |
| Private method net.miginfocom.demo.SwingDemo.createPanel() is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Class net.miginfocom.demo.SwingDemo$6$1 defines non-transient non-serializable instance field this$1 | BAD_PRACTICE | SE_BAD_FIELD | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Write to static field net.miginfocom.demo.SwtDemo.display from instance method net.miginfocom.demo.SwtDemo.SwtDemo() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| net.miginfocom.demo.SwtDemo$3.run() invokes System.exit(...), which shuts down the entire virtual machine | BAD_PRACTICE | DM_EXIT | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Check for oddness that won't work for negative numbers in net.miginfocom.layout.ConstraintParser.parseInsets(String, boolean) | STYLE | IM_BAD_CHECK_FOR_ODD | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method net.miginfocom.layout.Grid.Grid(ContainerWrapper, LC, AC, AC, Map, ArrayList) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| Method net.miginfocom.layout.Grid.addDockingCell(int[], int, Grid$CompWrap) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| Method net.miginfocom.layout.Grid.addToEndGroup(HashMap, String, int) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| Method net.miginfocom.layout.Grid.getCell(int, int) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| Method net.miginfocom.layout.Grid.getRowGaps(DimConstraint[], int, boolean, boolean[]) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| Method net.miginfocom.layout.Grid.setCell(int, int, Grid$Cell) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| Method net.miginfocom.layout.Grid.wrap(int[], BoundSize) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| net.miginfocom.layout.Grid.getHeight() may expose internal representation by returning Grid.height | MALICIOUS_CODE | EI_EXPOSE_REP | Not available |
| net.miginfocom.layout.Grid.getWidth() may expose internal representation by returning Grid.width | MALICIOUS_CODE | EI_EXPOSE_REP | Not available |
| int value cast to float and then passed to Math.round in net.miginfocom.layout.Grid.layoutInOneDim(int, UnitValue, boolean, Float[]) | CORRECTNESS | ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Primitive value is boxed and then immediately unboxed in net.miginfocom.layout.LayoutUtil.getBrokenBoundary(float, int, int) | PERFORMANCE | BX_BOXING_IMMEDIATELY_UNBOXED | Not available |
| net.miginfocom.layout.LayoutUtil.setDesignTime(ContainerWrapper, boolean) invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | Not available |
| Method net.miginfocom.layout.LayoutUtil.calculateSerial(int[][], ResizeConstraint[], Float[], int, int) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| Method net.miginfocom.layout.LayoutUtil.getBrokenBoundary(float, int, int) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method net.miginfocom.layout.LinkHandler.getValue(Object, String, int) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method net.miginfocom.layout.UnitValue.<static initializer>() invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| net.miginfocom.layout.UnitValue.getSubUnits() may expose internal representation by returning UnitValue.subUnits | MALICIOUS_CODE | EI_EXPOSE_REP | Not available |
| java.lang.String is incompatible with expected argument type net.miginfocom.layout.UnitConverter in net.miginfocom.layout.UnitValue.removeGlobalUnitConverter(String) | CORRECTNESS | GC_UNRELATED_TYPES | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| net.miginfocom.swing.SwingComponentWrapper.hasBaseline() invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead | PERFORMANCE | DM_BOOLEAN_CTOR | Not available |
| Method net.miginfocom.swing.SwingComponentWrapper.getBaseline(int, int) invokes inefficient Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | Not available |
| Exception is caught when Exception is not thrown in net.miginfocom.swing.SwingComponentWrapper.getBaseline(int, int) | STYLE | REC_CATCH_EXCEPTION | Not available |