Skip to content

Conversation

@sophokles73
Copy link
Contributor

Some of the UAttributes properties are defined as unsigned integers in
the protocol specification. However, Java does not have native support for
unsigned types, which can lead to issues when dealing with values that exceed
the maximum value of a signed integer.

Java 8 has introduced support for handling unsigned integers through methods
in the Integer and Long classes. This commit updates the codebase to utilize
these methods where appropriate, ensuring that unsigned integer values are
handled correctly.

This makes sure that more lines of code are executed during tests, which
increases the code coverage.
Some of the UAttributes properties are defined as unsigned integers in
the protocol specification. However, Java does not have native support for
unsigned types, which can lead to issues when dealing with values that exceed
the maximum value of a signed integer.

Java 8 has introduced support for handling unsigned integers through methods
in the Integer and Long classes. This commit updates the codebase to utilize
these methods where appropriate, ensuring that unsigned integer values are
handled correctly.
@sophokles73 sophokles73 added the bug Something isn't working label Sep 24, 2025
@github-actions
Copy link

Code coverage report is ready! 📈

Copy link

@PLeVasseur PLeVasseur left a comment

Choose a reason for hiding this comment

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

Thanks @sophokles73

@sophokles73 sophokles73 merged commit 022312f into eclipse-uprotocol:main Sep 24, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants