Skip to content
Snippets Groups Projects
Commit 4e5ce1e5 authored by felmer's avatar felmer
Browse files

SP-428, BIS-287: PropertyValidator wasn't multi-thread safe.

SVN: 27895
parent 84ae4b46
No related branches found
No related tags found
No related merge requests found
......@@ -42,9 +42,6 @@ import ch.systemsx.cisd.openbis.generic.shared.util.XmlUtils;
*/
public final class PropertyValidator implements IPropertyValueValidator
{
private final static Map<DataTypeCode, IDataTypeValidator> dataTypeValidators =
createDataTypeValidators();
private final static SimplePropertyValidator simplePropertyValidator =
new SimplePropertyValidator();
......@@ -76,7 +73,7 @@ public final class PropertyValidator implements IPropertyValueValidator
{
return simplePropertyValidator.validatePropertyValue(entityDataType, value);
}
final IDataTypeValidator dataTypeValidator = dataTypeValidators.get(entityDataType);
final IDataTypeValidator dataTypeValidator = createDataTypeValidators().get(entityDataType);
assert dataTypeValidator != null : String.format("No IDataTypeValidator implementation "
+ "specified for '%s'.", entityDataType);
switch (entityDataType)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment