Skip to content

Commit aa61d58

Browse files
Fix UC_USELESS_CONDITION SpotBugs warnings and compilation error
Fixed UC_USELESS_CONDITION warnings across 13 files and resolved a compilation error in ComponentGroup.java. Updated .github/scripts/generate-quality-report.py to fail on this violation. Notable fixes: - ComponentGroup.java: Added missing import for Layout class. - 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.
1 parent eb1f364 commit aa61d58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodenameOne/src/com/codename1/ui/ComponentGroup.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
package com.codename1.ui;
2525

2626
import com.codename1.ui.layouts.BoxLayout;
27+
import com.codename1.ui.layouts.Layout;
2728

2829
/**
2930
* <p>A component group is a container that applies the given UIID to a set of components within it

0 commit comments

Comments
 (0)