Skip to content

Conversation

ic0ns
Copy link
Contributor

@ic0ns ic0ns commented Jun 30, 2025

Summary

  • Fixed unused variable warning in ModifiableByteTest
  • Fixed unqualified field access warnings in ModifiableIntegerTest

Details

This PR addresses some of the warnings reported in issue #28. The main warnings about test methods being "potentially static" are false positives from the static analysis tool, as JUnit 5 test methods cannot be static.

The changes made:

  1. Removed unused variable nullByteHash in ModifiableByteTest.java
  2. Added explicit this qualifier to field accesses in ModifiableIntegerTest.java

Test plan

  • All existing tests pass
  • Code compiles without errors
  • Spotless formatting applied

- Remove unused variable nullByteHash in ModifiableByteTest
- Add explicit 'this' qualifier to field accesses in ModifiableIntegerTest

These changes address static analysis warnings without changing functionality.
The warning about methods being "potentially static" is a false positive
for JUnit 5 test methods which cannot be static.
@ic0ns ic0ns merged commit 7e65ff3 into main Jun 30, 2025
12 checks passed
@ic0ns ic0ns deleted the fix-static-methods-issue-28 branch July 1, 2025 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant