Skip to content

Conversation

@Touchie771
Copy link
Owner

fixes #7

@Touchie771
Copy link
Owner Author

LGTM! (Looks Good To Me)

This PR properly fixes issue #7:

  • Changed return type from HashSet<SlotItem> to Set<SlotItem>
  • Removed the unsafe cast that could cause ClassCastException
  • The change is minimal and focused

The wildcard import java.util.* is acceptable in this context since the file already uses multiple collection types.

This is a necessary breaking change to fix the bug. Ready to merge! 🚀

@Touchie771 Touchie771 merged commit 43d67d4 into master Nov 27, 2025
2 checks passed
@Touchie771 Touchie771 deleted the fix/get-items-casting branch November 27, 2025 18:14
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.

Unsafe casting in getItems() method

2 participants