Author: hardy.ferentschik
Date: 2009-03-06 17:29:35 -0500 (Fri, 06 Mar 2009)
New Revision: 16103
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ConstraintDescriptorImpl.java
Log:
HV-95
Modified:
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ConstraintDescriptorImpl.java
===================================================================
---
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ConstraintDescriptorImpl.java 2009-03-06
22:23:09 UTC (rev 16102)
+++
validator/trunk/hibernate-validator/src/main/java/org/hibernate/validation/engine/ConstraintDescriptorImpl.java 2009-03-06
22:29:35 UTC (rev 16103)
@@ -151,7 +151,7 @@
* {@inheritDoc}
*/
public Set<Class<?>> getGroups() {
- return groups;
+ return Collections.unmodifiableSet( groups );
}
/**
@@ -165,14 +165,14 @@
* {@inheritDoc}
*/
public Map<String, Object> getParameters() {
- return parameters;
+ return Collections.unmodifiableMap(parameters);
}
/**
* {@inheritDoc}
*/
public Set<ConstraintDescriptor<?>> getComposingConstraints() {
- return composingConstraints;
+ return Collections.unmodifiableSet(composingConstraints);
}
/**
Show replies by date