Skip to content

Commit c4192b6

Browse files
committed
More copilot suggestions
1 parent 53b8f2a commit c4192b6

File tree

1 file changed

+2
-2
lines changed
  • java/ql/lib/semmle/code/java/frameworks

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private import semmle.code.java.security.XSS
1313
/**
1414
* Gets a name for the root package of JAX-RS.
1515
*/
16-
string getAJaxRsPackage() { result in [javaxOrJakarta() + ".ws.rs"] }
16+
string getAJaxRsPackage() { result = javaxOrJakarta() + ".ws.rs" }
1717

1818
/**
1919
* Gets a name for package `subpackage` within the JAX-RS hierarchy.
@@ -114,7 +114,7 @@ private class JaxAcceptableStandardClass extends RefType {
114114
this.hasQualifiedName("java.util", "Calendar") or
115115
this.hasQualifiedName("java.math", "BigInteger") or
116116
this.hasQualifiedName("java.math", "BigDecimal") or
117-
this.hasQualifiedName(javaxOrJakarta() + ".xml.namespace", "QName") or
117+
this.hasQualifiedName("javax.xml.namespace", "QName") or
118118
this instanceof TypeUri
119119
}
120120
}

0 commit comments

Comments
 (0)