Hello Cyrill,

2015-05-01 17:44 GMT+02:00 Cyril <[email protected]>:

> Hello,
> I am interested by using a few validator routines such as the
> DomainValidator (package org.apache.commons.validator.routines). However,
> looking at the javadoc, I cannot find information about thread-safety in
> the description.
>
> Is DomainValidator#getInstance() and resulting DomainValidator instance
> thread-safe?
>

I've looked through the code of DomainValidator. It is immutable so
instances can be shared between threads. I've also created VALIDATOR-366
[1] for documenting this for all validators.

Thank you!
Benedikt

[1] https://issues.apache.org/jira/browse/VALIDATOR-366


>
> Thank you.
>
> Regards,
> Cyril
>



-- 
http://people.apache.org/~britter/
http://www.systemoutprintln.de/
http://twitter.com/BenediktRitter
http://github.com/britter

Reply via email to