The following document contains the results of FindBugs Report
FindBugs Version is 1.2.0
Threshold is Low
Effort is Default
| Classes | Bugs | Errors | Missing Classes |
|---|---|---|---|
| 374 | 62 | 0 | 0 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unchecked/unconfirmed cast from javax.microedition.lcdui.Displayable to javax.microedition.lcdui.Alert in javax.microedition.lcdui.Alert$1.commandAction(Command, Displayable) | STYLE | BC_UNCONFIRMED_CAST | 56 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Dead store to x in javax.microedition.lcdui.ChoiceGroup.getItemIndexAt(int, int) | STYLE | DLS_DEAD_LOCAL_STORE | 495 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unchecked/unconfirmed cast from javax.microedition.lcdui.Displayable to javax.microedition.lcdui.List in javax.microedition.lcdui.ChoiceGroup$ImplicitListener.commandAction(Command, Displayable) | STYLE | BC_UNCONFIRMED_CAST | 767 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Inconsistent synchronization of javax.microedition.lcdui.DateCanvas.day; locked 80% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 284 |
| Inconsistent synchronization of javax.microedition.lcdui.DateCanvas.month; locked 78% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 287 |
| Inconsistent synchronization of javax.microedition.lcdui.DateCanvas.selected; locked 72% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 319 |
| Inconsistent synchronization of javax.microedition.lcdui.DateCanvas.year; locked 76% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 290 |
| Bug | Category | Details | Line |
|---|---|---|---|
| javax.microedition.lcdui.DateField.getDate() may expose internal representation by returning DateField.date | MALICIOUS_CODE | EI_EXPOSE_REP | 107 |
| javax.microedition.lcdui.DateField.setDate(Date) may expose internal representation by storing an externally mutable object into DateField.date | MALICIOUS_CODE | EI_EXPOSE_REP2 | 113 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Possible null pointer dereference of Display.current in javax.microedition.lcdui.Display.updateCommands() | CORRECTNESS | NP_NULL_ON_SOME_PATH | 793 |
| Write to static field javax.microedition.lcdui.Alert.nextDisplayable from instance method javax.microedition.lcdui.Display.setCurrent(Alert, Displayable) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 696 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Should javax.microedition.lcdui.Display$PaintTask be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unread field: javax.microedition.lcdui.Gauge.PAINT_TIMEOUT | PERFORMANCE | URF_UNREAD_FIELD | 44 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unwritten field: javax.microedition.lcdui.Gauge.prefHeight | CORRECTNESS | UWF_UNWRITTEN_FIELD | 168 |
| Unwritten field: javax.microedition.lcdui.Gauge.prefWidth | CORRECTNESS | UWF_UNWRITTEN_FIELD | 168 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Inconsistent synchronization of javax.microedition.lcdui.StringComponent.text; locked 88% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 123 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Inconsistent synchronization of javax.microedition.lcdui.TimeCanvas.hours; locked 66% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 503 |
| Inconsistent synchronization of javax.microedition.lcdui.TimeCanvas.minutes; locked 66% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 506 |
| Inconsistent synchronization of javax.microedition.lcdui.TimeCanvas.selected; locked 80% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 533 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Inconsistent synchronization of javax.microedition.lcdui.game.GameCanvas.actualKeyState; locked 50% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 81 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Inconsistent synchronization of javax.microedition.lcdui.game.Layer.x; locked 75% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 61 |
| Inconsistent synchronization of javax.microedition.lcdui.game.Layer.y; locked 75% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 65 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Dead store to img in javax.microedition.lcdui.game.Sprite.collidesWith(Object, int, int) | STYLE | DLS_DEAD_LOCAL_STORE | 645 |
| javax.microedition.lcdui.game.Sprite.setFrameSequence(int[]) may expose internal representation by storing an externally mutable object into Sprite.sequence | MALICIOUS_CODE | EI_EXPOSE_REP2 | 260 |
| Inconsistent synchronization of javax.microedition.lcdui.game.Sprite.img; locked 50% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 382 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Dead store to cH in javax.microedition.lcdui.game.TiledLayer.paint(Graphics) | STYLE | DLS_DEAD_LOCAL_STORE | 231 |
| Dead store to cW in javax.microedition.lcdui.game.TiledLayer.paint(Graphics) | STYLE | DLS_DEAD_LOCAL_STORE | 230 |
| Dead store to cX in javax.microedition.lcdui.game.TiledLayer.paint(Graphics) | STYLE | DLS_DEAD_LOCAL_STORE | 228 |
| Dead store to cY in javax.microedition.lcdui.game.TiledLayer.paint(Graphics) | STYLE | DLS_DEAD_LOCAL_STORE | 229 |
| Dead store to imgRows in javax.microedition.lcdui.game.TiledLayer.paint(Graphics) | STYLE | DLS_DEAD_LOCAL_STORE | 256 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Inconsistent synchronization of javax.microedition.lcdui.game.TiledLayer.img; locked 90% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 645 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Inconsistent synchronization of javax.microedition.lcdui.game.TiledLayer.tileHeight; locked 50% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 209 |
| Inconsistent synchronization of javax.microedition.lcdui.game.TiledLayer.tileWidth; locked 50% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 205 |
| Self assignment of field TiledLayer.img in javax.microedition.lcdui.game.TiledLayer.setStaticTileSet(Image, int, int) | CORRECTNESS | SA_FIELD_SELF_ASSIGNMENT | 154 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Should javax.microedition.media.MidiAudioPlayer.getControls() return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 169 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Should javax.microedition.media.SampledAudioPlayer.getControls() return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 189 |
| Bug | Category | Details | Line |
|---|---|---|---|
| The class javax.microedition.midlet.MIDlet$MIDletAccessor could be refactored into a _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Class javax.microedition.pki.CertificateException defines non-transient non-serializable instance field certificate | BAD_PRACTICE | SE_BAD_FIELD | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Should javax.microedition.rms.RecordStore.getRecord(int) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 193 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method org.microemu.device.InputMethod.validate(String, int) uses the same code for two switch clauses | STYLE | DB_DUPLICATE_SWITCH_CLAUSES | 98 |
| Unread field: org.microemu.device.InputMethod.inputMethod | PERFORMANCE | URF_UNREAD_FIELD | 33 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unread field: org.microemu.device.InputMethodEvent.type | PERFORMANCE | URF_UNREAD_FIELD | 36 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Inconsistent synchronization of org.microemu.midp.media.BasicPlayer.state; locked 50% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 67 |
| Inconsistent synchronization of org.microemu.midp.media.BasicPlayer.timeBase; locked 50% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 87 |
| org.microemu.midp.media.BasicPlayer.CONTROL_TYPE isn't final but should be | MALICIOUS_CODE | MS_SHOULD_BE_FINAL | 30 |
| org.microemu.midp.media.BasicPlayer.getListenersVector() is unsynchronized, org.microemu.midp.media.BasicPlayer.setListenersVector(Vector) is synchronized | MT_CORRECTNESS | UG_SYNC_SET_UNSYNC_GET | 124 |
| org.microemu.midp.media.BasicPlayer.getLoopCount() is unsynchronized, org.microemu.midp.media.BasicPlayer.setLoopCount(int) is synchronized | MT_CORRECTNESS | UG_SYNC_SET_UNSYNC_GET | 114 |
| org.microemu.midp.media.BasicPlayer.getMediaTime() is unsynchronized, org.microemu.midp.media.BasicPlayer.setMediaTime(long) is synchronized | MT_CORRECTNESS | UG_SYNC_SET_UNSYNC_GET | 82 |
| org.microemu.midp.media.BasicPlayer.getState() is unsynchronized, org.microemu.midp.media.BasicPlayer.setState(int) is synchronized | MT_CORRECTNESS | UG_SYNC_SET_UNSYNC_GET | 67 |
| org.microemu.midp.media.BasicPlayer.getTimeBase() is unsynchronized, org.microemu.midp.media.BasicPlayer.setTimeBase(TimeBase) is synchronized | MT_CORRECTNESS | UG_SYNC_SET_UNSYNC_GET | 87 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Dead store to amplify in org.microemu.midp.media.audio.PCTone.play(double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 87 |
| Dead store to d_sampleRate in org.microemu.midp.media.audio.PCTone.play(double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 89 |
| Dead store to $L18 in org.microemu.midp.media.audio.PCTone.play(double, double, double) | STYLE | DLS_DEAD_LOCAL_STORE | 96 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.microemu.midp.media.audio.PCToneControl.getSequence() may expose internal representation by returning PCToneControl.sequence | MALICIOUS_CODE | EI_EXPOSE_REP | 39 |
| org.microemu.midp.media.audio.PCToneControl.setSequence(byte[]) may expose internal representation by storing an externally mutable object into PCToneControl.sequence | MALICIOUS_CODE | EI_EXPOSE_REP2 | 34 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Dead store to $L2 in org.microemu.midp.media.audio.PCTonePlayer.run() | STYLE | DLS_DEAD_LOCAL_STORE | 187 |
| Should org.microemu.midp.media.audio.PCTonePlayer.getControls() return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 104 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Should org.microemu.util.RecordEnumerationImpl$EnumerationRecord be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Inconsistent synchronization of org.microemu.util.RecordStoreImpl.lastModified; locked 80% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 99 |
| Inconsistent synchronization of org.microemu.util.RecordStoreImpl.nextRecordID; locked 83% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 100 |
| Inconsistent synchronization of org.microemu.util.RecordStoreImpl.version; locked 87% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 98 |
| org.microemu.util.RecordStoreImpl.RecordStoreImpl(RecordStoreManager, DataInputStream) ignores result of java.io.DataInputStream.read(byte[], int, int) | BAD_PRACTICE | RR_NOT_CHECKED | 86 |