Skip to content

Commit 91c731f

Browse files
committed
Fix new usage that was introduced
1 parent c4192b6 commit 91c731f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java/ql/lib/semmle/code/java/frameworks/JavaxAnnotations.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ class WebServiceRefAnnotation extends Annotation {
195195
*/
196196
class PatternAnnotation extends Annotation, RegexMatch::Range {
197197
PatternAnnotation() {
198-
this.getType()
199-
.hasQualifiedName(["javax.validation.constraints", "jakarta.validation.constraints"],
200-
"Pattern")
198+
this.getType().hasQualifiedName(javaxOrJakarta() + ".validation.constraints", "Pattern")
201199
}
202200

203201
override Expr getRegex() { result = this.getValue("regexp") }

0 commit comments

Comments
 (0)