Skip to content

Commit b548bbd

Browse files
authored
Merge pull request #2758 from github/starcke/more-java-update
Change the java query to work for multiple java versions.
2 parents d1a342b + 3a08432 commit b548bbd

File tree

1 file changed

+6
-1
lines changed
  • extensions/ql-vscode/src/data-extensions-editor/queries

1 file changed

+6
-1
lines changed

extensions/ql-vscode/src/data-extensions-editor/queries/java.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ class CallableMethod extends Callable {
147147
148148
/** Holds if this API is a known neutral. */
149149
pragma[nomagic]
150-
predicate isNeutral() { this instanceof FlowSummaryImpl::Public::NeutralCallable }
150+
predicate isNeutral() {
151+
exists(string namespace, string type, string name, string signature, string kind, string provenance |
152+
neutralModel(namespace, type, name, signature, kind, provenance) and
153+
this = interpretElement(namespace, type, false, name, signature, "")
154+
)
155+
}
151156
152157
/**
153158
* Holds if this API is supported by existing CodeQL libraries, that is, it is either a

0 commit comments

Comments
 (0)