Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df4164f

Browse files
Alvaro Muñozaschackmull
authored andcommitted
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent c1decf4 commit df4164f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

java/ql/src/experimental/Security/CWE/CWE-094/InsecureBeanValidation.ql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ class BeanValidationSource extends RemoteFlowSource {
2121
m.getParameter(0) = v and
2222
m
2323
.getDeclaringType()
24-
.getASupertype+()
25-
.getSourceDeclaration()
24+
.getASourceSupertype+()
2625
.hasQualifiedName("javax.validation", "ConstraintValidator") and
2726
m.hasName("isValid") and
2827
m.fromSource()
@@ -34,10 +33,10 @@ class BeanValidationSource extends RemoteFlowSource {
3433

3534
class BuildConstraintViolationWithTemplateMethod extends Method {
3635
BuildConstraintViolationWithTemplateMethod() {
37-
getDeclaringType()
36+
this.getDeclaringType()
3837
.getASupertype*()
3938
.hasQualifiedName("javax.validation", "ConstraintValidatorContext") and
40-
hasName("buildConstraintViolationWithTemplate")
39+
this.hasName("buildConstraintViolationWithTemplate")
4140
}
4241
}
4342

0 commit comments

Comments
 (0)