Commit d0e4faa
committed
Fix UC_USELESS_CONDITION SpotBugs warnings
Resolves "Condition has no effect" warnings in:
- HTMLComponent.java (Redundant else/assignment)
- CSSEngine.java (Redundant getUi() != null check)
- CSSParser.java (Redundant EOF check)
- RECharacter.java (Duplicate check)
- ResourceThreadQueue.java (Simplified boolean check)
- Component.java (Redundant isFlatten() || !opaque check)
- CodenameOneImplementation.java (Redundant width/height check)
- MathUtil.java (Redundant huge + x > one check)
- MenuBar.java (Dead code removal for ICS check)
- ComponentGroup.java (Refactored logic)
- Updated generate-quality-report.py to enforce this rule.1 parent f3e35c7 commit d0e4faa
File tree
9 files changed
+10
-20
lines changed- CodenameOne/src/com/codename1
- impl
- ui
- html
- util
9 files changed
+10
-20
lines changedLines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7960 | 7960 | | |
7961 | 7961 | | |
7962 | 7962 | | |
7963 | | - | |
7964 | | - | |
7965 | | - | |
7966 | 7963 | | |
7967 | 7964 | | |
7968 | 7965 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3219 | 3219 | | |
3220 | 3220 | | |
3221 | 3221 | | |
3222 | | - | |
3223 | | - | |
3224 | | - | |
3225 | 3222 | | |
3226 | 3223 | | |
3227 | 3224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
117 | | - | |
118 | | - | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1497 | 1497 | | |
1498 | 1498 | | |
1499 | 1499 | | |
1500 | | - | |
| 1500 | + | |
1501 | 1501 | | |
1502 | 1502 | | |
1503 | 1503 | | |
1504 | 1504 | | |
1505 | | - | |
| 1505 | + | |
1506 | 1506 | | |
1507 | 1507 | | |
1508 | 1508 | | |
1509 | 1509 | | |
1510 | 1510 | | |
1511 | | - | |
| 1511 | + | |
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2971 | 2971 | | |
2972 | 2972 | | |
2973 | 2973 | | |
2974 | | - | |
2975 | | - | |
2976 | 2974 | | |
2977 | 2975 | | |
2978 | 2976 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
| 462 | + | |
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
903 | | - | |
904 | | - | |
905 | | - | |
| 903 | + | |
906 | 904 | | |
907 | 905 | | |
908 | 906 | | |
| |||
0 commit comments