Skip to content

Conversation

@simbo1905
Copy link
Owner

Fixes visibility mismatch in Utils.getPath method by changing method visibility from public to package-private.

Problem: The method was declared public but used a package-private parameter type (JsonValueImpl), making it effectively unusable from outside the package.

Solution: Changed method visibility to package-private to match the parameter type visibility, ensuring proper encapsulation while maintaining internal functionality.

Changes:

  • Changed to
  • Maintains all existing functionality for internal package usage
  • Resolves visibility mismatch identified by static analysis

Testing:

  • Code compiles successfully
  • All tests pass (25 tests, 0 failures)

Closes #59

Changed method visibility from public to package-private to match
the parameter type JsonValueImpl which is package-private.

This resolves the visibility mismatch where a public method was
using a package-private type in its signature, making the method
unusable from outside the package while maintaining the intended
internal usage within the json package.

- Fixed visibility mismatch by changing public to package-private
- Maintains all existing functionality for internal usage
- Aligns with proper encapsulation principles
@simbo1905 simbo1905 merged commit 63ec395 into main Sep 27, 2025
4 checks passed
@simbo1905 simbo1905 deleted the fix-issue-59-utils-visibility branch September 27, 2025 07:54
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.

Fix visibility mismatch in Utils.getPath method signature

2 participants