Skip to content
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

Is the Validator thread safe ? #41

Closed
TheoCadoret opened this issue Jan 22, 2020 · 2 comments
Closed

Is the Validator thread safe ? #41

TheoCadoret opened this issue Jan 22, 2020 · 2 comments
Labels
enhancement New feature or request question Further information is requested release: 0.2.x

Comments

@TheoCadoret
Copy link

Hello,

We've been using this class as a singleton for a while now and never had any problem. But the Validator Java doc seems to imply that its use "must be thread safe". So i'm a bit confused as even in the official documentation the webflux example does not seem to be very thread safe.

What do you think about this ?

@making
Copy link
Owner

making commented Jan 22, 2020

@TheoCadoret Thanks for reporting. A Validator instance is immutable and can be used as a singleton.
I’ll fix the confusing doc.

@making making added the question Further information is requested label Jan 22, 2020
@TheoCadoret
Copy link
Author

TheoCadoret commented Jan 22, 2020

@making Thanks for the quick answer !

@making making added enhancement New feature or request release: 0.2.x labels Jan 22, 2020
making added a commit that referenced this issue Jan 26, 2020
@making making closed this as completed in 64fcd3c Jan 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested release: 0.2.x
Projects
None yet
Development

No branches or pull requests

2 participants