Class OverridingMethodMustNotAlterParameterConstraints
- java.lang.Object
-
- org.hibernate.validator.internal.metadata.aggregated.rule.MethodConfigurationRule
-
- org.hibernate.validator.internal.metadata.aggregated.rule.OverridingMethodMustNotAlterParameterConstraints
-
public class OverridingMethodMustNotAlterParameterConstraints extends MethodConfigurationRule
Rule that ensures that overriding methods don't add to or alter the constraints defined on the overridden method.- Author:
- Gunnar Morling
-
-
Field Summary
-
Fields inherited from class org.hibernate.validator.internal.metadata.aggregated.rule.MethodConfigurationRule
LOG
-
-
Constructor Summary
Constructors Constructor Description OverridingMethodMustNotAlterParameterConstraints()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(ConstrainedExecutable method, ConstrainedExecutable otherMethod)Applies this rule.-
Methods inherited from class org.hibernate.validator.internal.metadata.aggregated.rule.MethodConfigurationRule
isDefinedOnParallelType, isDefinedOnSubType, isStrictSubType
-
-
-
-
Method Detail
-
apply
public void apply(ConstrainedExecutable method, ConstrainedExecutable otherMethod)
Description copied from class:MethodConfigurationRuleApplies this rule. Invoked for each pair of methods collected by a given executable meta dataExecutableMetaData.Builder.- Specified by:
applyin classMethodConfigurationRule- Parameters:
method- The first method to check.otherMethod- The other method to check.
-
-