SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.8.6
Threshold is low
Effort is max
Summary
Classes |
Bugs |
Errors |
Missing Classes |
8 |
24 |
0 |
0 |
io.github.olyutorskii.quetexj.HeightKeeper
Bug |
Category |
Details |
Line |
Priority |
Exception thrown in class io.github.olyutorskii.quetexj.HeightKeeper at new io.github.olyutorskii.quetexj.HeightKeeper(JTextArea, BoundedRangeModel) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
65 |
Medium |
Exception thrown in class io.github.olyutorskii.quetexj.HeightKeeper at new io.github.olyutorskii.quetexj.HeightKeeper(JTextArea, BoundedRangeModel, int, int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
89 |
Medium |
io.github.olyutorskii.quetexj.HeightKeeper.getBoundedRangeModel() may expose internal representation by returning HeightKeeper.rangeModel |
MALICIOUS_CODE |
EI_EXPOSE_REP |
118 |
Medium |
io.github.olyutorskii.quetexj.HeightKeeper.getTextComponent() may expose internal representation by returning HeightKeeper.textComp |
MALICIOUS_CODE |
EI_EXPOSE_REP |
109 |
Medium |
new io.github.olyutorskii.quetexj.HeightKeeper(JTextArea, BoundedRangeModel, int, int) may expose internal representation by storing an externally mutable object into HeightKeeper.rangeModel |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
98 |
Medium |
new io.github.olyutorskii.quetexj.HeightKeeper(JTextArea, BoundedRangeModel, int, int) may expose internal representation by storing an externally mutable object into HeightKeeper.textComp |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
92 |
Medium |
io.github.olyutorskii.quetexj.MaxTracker
Bug |
Category |
Details |
Line |
Priority |
io.github.olyutorskii.quetexj.MaxTracker.getBoundedRangeModel() may expose internal representation by returning MaxTracker.rangeModel |
MALICIOUS_CODE |
EI_EXPOSE_REP |
81 |
Medium |
io.github.olyutorskii.quetexj.MaxTracker.getButtonModel() may expose internal representation by returning MaxTracker.trackModeModel |
MALICIOUS_CODE |
EI_EXPOSE_REP |
90 |
Medium |
new io.github.olyutorskii.quetexj.MaxTracker(BoundedRangeModel, ButtonModel) may expose internal representation by storing an externally mutable object into MaxTracker.rangeModel |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
58 |
Medium |
new io.github.olyutorskii.quetexj.MaxTracker(BoundedRangeModel, ButtonModel) may expose internal representation by storing an externally mutable object into MaxTracker.trackModeModel |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
59 |
Medium |
io.github.olyutorskii.quetexj.MvcFacade
Bug |
Category |
Details |
Line |
Priority |
io.github.olyutorskii.quetexj.MvcFacade.getClearAction() may expose internal representation by returning MvcFacade.clearAction |
MALICIOUS_CODE |
EI_EXPOSE_REP |
161 |
Medium |
io.github.olyutorskii.quetexj.MvcFacade.getDocument() may expose internal representation by returning MvcFacade.document |
MALICIOUS_CODE |
EI_EXPOSE_REP |
107 |
Medium |
io.github.olyutorskii.quetexj.MvcFacade.getHeightKeeper() may expose internal representation by returning MvcFacade.heightKeeper |
MALICIOUS_CODE |
EI_EXPOSE_REP |
134 |
Medium |
io.github.olyutorskii.quetexj.MvcFacade.getMaxTracker() may expose internal representation by returning MvcFacade.maxTracker |
MALICIOUS_CODE |
EI_EXPOSE_REP |
143 |
Medium |
io.github.olyutorskii.quetexj.MvcFacade.getTextArea() may expose internal representation by returning MvcFacade.textArea |
MALICIOUS_CODE |
EI_EXPOSE_REP |
116 |
Medium |
io.github.olyutorskii.quetexj.MvcFacade.getTrackSwitchButtonModel() may expose internal representation by returning MvcFacade.trackSwitchButtonModel |
MALICIOUS_CODE |
EI_EXPOSE_REP |
152 |
Medium |
io.github.olyutorskii.quetexj.MvcFacade.getVerticalBoundedRangeModel() may expose internal representation by returning MvcFacade.vertRangeModel |
MALICIOUS_CODE |
EI_EXPOSE_REP |
125 |
Medium |
new io.github.olyutorskii.quetexj.MvcFacade(Document, BoundedRangeModel, JToggleButton$ToggleButtonModel) may expose internal representation by storing an externally mutable object into MvcFacade.document |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
61 |
Medium |
new io.github.olyutorskii.quetexj.MvcFacade(Document, BoundedRangeModel, JToggleButton$ToggleButtonModel) may expose internal representation by storing an externally mutable object into MvcFacade.trackSwitchButtonModel |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
63 |
Medium |
new io.github.olyutorskii.quetexj.MvcFacade(Document, BoundedRangeModel, JToggleButton$ToggleButtonModel) may expose internal representation by storing an externally mutable object into MvcFacade.vertRangeModel |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
62 |
Medium |
io.github.olyutorskii.quetexj.SwingLogHandler
Bug |
Category |
Details |
Line |
Priority |
Exception thrown in class io.github.olyutorskii.quetexj.SwingLogHandler at new io.github.olyutorskii.quetexj.SwingLogHandler() will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
39 |
Medium |
Exception thrown in class io.github.olyutorskii.quetexj.SwingLogHandler at new io.github.olyutorskii.quetexj.SwingLogHandler(Document) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
61 |
Medium |
io.github.olyutorskii.quetexj.SwingLogHandler.getDocument() may expose internal representation by returning SwingLogHandler.document |
MALICIOUS_CODE |
EI_EXPOSE_REP |
75 |
Medium |
new io.github.olyutorskii.quetexj.SwingLogHandler(Document) may expose internal representation by storing an externally mutable object into SwingLogHandler.document |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
54 |
Medium |