We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4192b6 commit 91c731fCopy full SHA for 91c731f
java/ql/lib/semmle/code/java/frameworks/JavaxAnnotations.qll
@@ -195,9 +195,7 @@ class WebServiceRefAnnotation extends Annotation {
195
*/
196
class PatternAnnotation extends Annotation, RegexMatch::Range {
197
PatternAnnotation() {
198
- this.getType()
199
- .hasQualifiedName(["javax.validation.constraints", "jakarta.validation.constraints"],
200
- "Pattern")
+ this.getType().hasQualifiedName(javaxOrJakarta() + ".validation.constraints", "Pattern")
201
}
202
203
override Expr getRegex() { result = this.getValue("regexp") }
0 commit comments