-
Notifications
You must be signed in to change notification settings - Fork 737
Use ID-based equality check for TemplateFormat consistently #530
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
Conversation
Thanks, @izeye. While there are constants for Asciidoctor and Markdown, there's nothing to stop someone creating their own |
@wilkinsona Thanks for the feedback! If so, how about implementing |
With |
@wilkinsona Sorry, I missed the fact that |
Sorry, I wasn't very clear. I think the test's current use of |
@wilkinsona Thanks for the clarification! I updated this as you suggested. |
I missed two places and polished them a bit in 4e75e00. |
* gh-530: Polish "Consistently use ID-based equality check for TemplateFormat" Consistently use ID-based equality check for TemplateFormat
Thanks again, @izeye. These changes are now in 1.2.x and master. |
There are three ways to check equality for
TemplateFormats
constants:getId().equals()
equals()
==
As they are constants,
==
will be sufficient. So this PR changes to use==
for equality check consistently.