Skip to content

🧹 🎓 Topic bag implementations --- Remove note on indexOf throwing exception 🔬 #1036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jameshughes89
Copy link
Owner

What

Remove the comment about indexOf throwing an exception when discussing remove(T element)

Why

Not needed anymore. Although it's true, it's not worth bringing up since it should never be the case that indexOf throws the exception in the context of using `remove(T element).

I assume this statement about it throwing an exception was included because of an older version of the class that returned an element of type T, where this was changed to return a boolean.

Testing

Nah

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