Skip to content

Conversation

@shai-almog
Copy link
Collaborator

Summary

  • remove dead stores and simplify bit reversing in gzip helper classes
  • clean up unused locals and redundant computations across UI components and utilities
  • streamline resource/theme parsing by eliminating unused values and avoiding unnecessary boxing

Testing

  • mvn -pl CodenameOne -am -DskipTests compile (fails: module CodenameOne not found in reactor)

https://chatgpt.com/codex/tasks/task_e_68f3914ae9c88331ba0ef2348f09c3ce

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 541 to 545
* Reads the header of the resource file
*/
private void readHeader() throws IOException {
int size = input.readShort();
majorVersion = input.readShort();
minorVersion = input.readShort();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Header reader no longer consumes leading size field

The resource header previously read and discarded a 16‑bit size value before reading majorVersion, minorVersion, and the metadata length. The new code skips that first input.readShort(), so majorVersion now consumes the size field and everything that follows is offset by two bytes. This will corrupt the version values and almost certainly cause metaData length to be wrong, leading to malformed resource parsing or runtime failures whenever a .res file is loaded.

Useful? React with 👍 / 👎.

@github-actions
Copy link

github-actions bot commented Oct 18, 2025

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Collaborator Author

shai-almog commented Oct 18, 2025

✅ Native Android screenshot tests passed.

@shai-almog shai-almog merged commit 4e5cbc2 into master Oct 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants