You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed multiple occurrences of UC_USELESS_CONDITION warnings across 13 files.
Updated .github/scripts/generate-quality-report.py to fail on this violation.
Notable fixes:
- CSSParser.java: Fixed char to byte cast comparison that caused premature EOF on extended ASCII.
- ResourceThreadQueue.java: Fixed variable shadowing and added volatile to cancelled flag.
- UnitValue.java: Fixed condition checking operation type.
- XMLParser.java: Used Character.toLowerCase instead of manual range check.
- Various cleanups in Grid.java, MenuBar.java, Component.java, etc.
if (c == ';' && readNewline) { //leftover from compound operation
145
145
c = r.readCharFromReader();
146
-
while (((byte) c) != -1 && isWhiteSpace(c)) { // This was added since after reading ; there might be some more white spaces. However there needs to be a way to combine this with the previous white spaces code or with the revised newline detection and unreading char below
146
+
while (c != (char) -1 && isWhiteSpace(c)) { // This was added since after reading ; there might be some more white spaces. However there needs to be a way to combine this with the previous white spaces code or with the revised newline detection and unreading char below
//lbl.setVerticalAlignment(Component.BOTTOM); //TODO - This still doesn't align as label alignment in Codename One refers to the text alignment in relation to its icon (if exists)
0 commit comments