Commit 224bd73
committed
Fix remaining SpotBugs UC_USELESS_CONDITION warnings
Fixed multiple instances of 'Condition has no effect' (UC_USELESS_CONDITION) in core classes:
* CodenameOne/src/com/codename1/util/MathUtil.java: Fixed bitwise shift logic in `ieee754_pow` (`>>>` to `>>`) to restore correct negative number handling.
* CodenameOne/src/com/codename1/ui/MenuBar.java: Removed redundant `COMMAND_BEHAVIOR_ICS` check.
* CodenameOne/src/com/codename1/ui/Component.java: Removed duplicate `!animateBackground` check.
* CodenameOne/src/com/codename1/ui/ComponentGroup.java: Removed redundant `if (count > 1)` check.
* CodenameOne/src/com/codename1/ui/html/CSSParser.java: Removed redundant whitespace check.
* CodenameOne/src/com/codename1/ui/html/HTMLComponent.java: Removed redundant whitespace check.
* CodenameOne/src/com/codename1/xml/XMLParser.java: Removed redundant whitespace check.
* CodenameOne/src/com/codename1/ui/html/CSSEngine.java: Removed redundant whitespace check.
* CodenameOne/src/com/codename1/impl/CodenameOneImplementation.java: Refactored `setCommandBehavior` condition logic.1 parent b871934 commit 224bd73
File tree
9 files changed
+15
-18
lines changed- CodenameOne/src/com/codename1
- impl
- ui
- html
- util
- xml
9 files changed
+15
-18
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7447 | 7447 | | |
7448 | 7448 | | |
7449 | 7449 | | |
7450 | | - | |
7451 | | - | |
7452 | | - | |
7453 | | - | |
| 7450 | + | |
| 7451 | + | |
| 7452 | + | |
| 7453 | + | |
7454 | 7454 | | |
7455 | 7455 | | |
7456 | 7456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6542 | 6542 | | |
6543 | 6543 | | |
6544 | 6544 | | |
6545 | | - | |
| 6545 | + | |
6546 | 6546 | | |
6547 | 6547 | | |
6548 | 6548 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
161 | 159 | | |
162 | 160 | | |
163 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1056 | 1056 | | |
1057 | 1057 | | |
1058 | 1058 | | |
1059 | | - | |
1060 | 1059 | | |
1061 | 1060 | | |
1062 | 1061 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
810 | | - | |
| 810 | + | |
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2028 | 2028 | | |
2029 | 2029 | | |
2030 | 2030 | | |
2031 | | - | |
| 2031 | + | |
2032 | 2032 | | |
2033 | 2033 | | |
2034 | 2034 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
| 622 | + | |
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
| 525 | + | |
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
| |||
0 commit comments