Apply suggestions from code review

Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
Alvaro Muñoz
2020-10-22 14:15:35 +02:00
committed by Alvaro Muñoz
parent c1decf4d0d
commit df4164f2c0

View File

@@ -21,8 +21,7 @@ class BeanValidationSource extends RemoteFlowSource {
m.getParameter(0) = v and
m
.getDeclaringType()
.getASupertype+()
.getSourceDeclaration()
.getASourceSupertype+()
.hasQualifiedName("javax.validation", "ConstraintValidator") and
m.hasName("isValid") and
m.fromSource()
@@ -34,10 +33,10 @@ class BeanValidationSource extends RemoteFlowSource {
class BuildConstraintViolationWithTemplateMethod extends Method {
BuildConstraintViolationWithTemplateMethod() {
getDeclaringType()
this.getDeclaringType()
.getASupertype*()
.hasQualifiedName("javax.validation", "ConstraintValidatorContext") and
hasName("buildConstraintViolationWithTemplate")
this.hasName("buildConstraintViolationWithTemplate")
}
}