Skip to content
New issue

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

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

Already on GitHub? # to your account

Make Inflector more amenable to thread safety. #435

Merged
merged 1 commit into from
Oct 26, 2015
Merged

Make Inflector more amenable to thread safety. #435

merged 1 commit into from
Oct 26, 2015

Conversation

markdingram
Copy link
Contributor

  • reduced public API to 2 synchronized methods: singularize/pluralize
  • eagerly construct singleton to avoid construction race
  • remove unnecessary static lists/methods

(encountering sporadic failures from a parallel Maven build using RAML JAXRS Codegen Maven plugin)

- reduced public API to 2 synchronized methods: singularize/pluralize
- eagerly construct singleton to avoid construction race
- remove unnecessary static lists/methods
@joelittlejohn
Copy link
Owner

Thanks! 👍

This class was taken from http://dzone.com/snippets/java-inflections and used/licensed with permission from the author. This same exact class is used without modification in a few other projects, so I guess we have the best version now :D

joelittlejohn added a commit that referenced this pull request Oct 26, 2015
Make Inflector more amenable to thread safety.
@joelittlejohn joelittlejohn merged commit f399f9c into joelittlejohn:master Oct 26, 2015
@joelittlejohn joelittlejohn added this to the 0.4.17 milestone Oct 26, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants