Commit 269e17b
authored
Fix SpotBugs Repeated Conditional Tests (#4360)
* Fix repeated conditional tests warnings and enforce rule in CI
Fixed RpC_REPEATED_CONDITIONAL_TEST violations in:
- GridBagConstraints.java: Fixed copy-paste error in insets check
- CSSBorder.java: Fixed redundant quote check
- ImageViewer.java: Fixed logic in keyReleased method
- Container.java: Simplified componentAt logic
Updated generate-quality-report.py to enforce this rule.
* Fix repeated conditional tests warnings and enforce rule in CI
Fixed RpC_REPEATED_CONDITIONAL_TEST violations in:
- GridBagConstraints.java: Fixed copy-paste error in insets check
- CSSBorder.java: Fixed redundant quote check
- ImageViewer.java: Fixed logic in keyReleased method
- Container.java: Simplified componentAt logic
- Form.java: Removed redundant nested if check
Updated generate-quality-report.py to enforce this rule.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent 24a85df commit 269e17b
File tree
6 files changed
+11
-14
lines changed- .github/scripts
- CodenameOne/src/com/codename1
- components
- ui
- layouts
- plaf
6 files changed
+11
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
| 767 | + | |
| 768 | + | |
768 | 769 | | |
769 | 770 | | |
770 | 771 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2975 | 2975 | | |
2976 | 2976 | | |
2977 | 2977 | | |
2978 | | - | |
2979 | | - | |
2980 | | - | |
2981 | | - | |
| 2978 | + | |
| 2979 | + | |
2982 | 2980 | | |
2983 | 2981 | | |
2984 | 2982 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1462 | 1462 | | |
1463 | 1463 | | |
1464 | 1464 | | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
1470 | 1468 | | |
1471 | 1469 | | |
1472 | 1470 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
| 173 | + | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
1137 | | - | |
| 1137 | + | |
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
| |||
0 commit comments