Skip to content

Best practice when compare enum#869

Merged
iluwatar merged 1 commit into
iluwatar:masterfrom
hoangnam2261:compare_enum
Jul 29, 2019
Merged

Best practice when compare enum#869
iluwatar merged 1 commit into
iluwatar:masterfrom
hoangnam2261:compare_enum

Conversation

@hoangnam2261
Copy link
Copy Markdown
Contributor

Dear all,
Should we apply best practice when compare enum in this case?
Reference: https://stackoverflow.com/questions/1750435/comparing-java-enum-members-or-equals
Thanks,

@iluwatar iluwatar self-assigned this Jul 29, 2019
@iluwatar iluwatar added this to the 1.21.0 milestone Jul 29, 2019
@iluwatar iluwatar merged commit 2757b21 into iluwatar:master Jul 29, 2019
@iluwatar
Copy link
Copy Markdown
Owner

Thanks @hoangnam2261 for this improvement!

hoangnam2261 added a commit to hoangnam2261/java-design-patterns that referenced this pull request Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants