mirror of
https://github.com/github/codeql.git
synced 2026-02-23 18:33:42 +01:00
Fix new usage that was introduced
This commit is contained in:
@@ -195,9 +195,7 @@ class WebServiceRefAnnotation extends Annotation {
|
||||
*/
|
||||
class PatternAnnotation extends Annotation, RegexMatch::Range {
|
||||
PatternAnnotation() {
|
||||
this.getType()
|
||||
.hasQualifiedName(["javax.validation.constraints", "jakarta.validation.constraints"],
|
||||
"Pattern")
|
||||
this.getType().hasQualifiedName(javaxOrJakarta() + ".validation.constraints", "Pattern")
|
||||
}
|
||||
|
||||
override Expr getRegex() { result = this.getValue("regexp") }
|
||||
|
||||
Reference in New Issue
Block a user