Skip to content
Discussion options

You must be logged in to vote

I was mistaken about the implementation; it is indeed implemented as a singleton return. I think we should change List to Set for simplicity.

The current implementation of RegistryService doesn’t override equals and hashCode.
So if we use a Set, I think logically identical instances could end up being stored as duplicates.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@YoWuwuuuw
Comment options

@funky-eyes
Comment options

@YongGoose
Comment options

Answer selected by YoWuwuuuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants