mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
Java: Add pragma[only_bind_out] to Top::toString() calls
This commit is contained in:
@@ -26,7 +26,7 @@ class Exception extends Element, @exception {
|
||||
/** Holds if this exception has the specified `name`. */
|
||||
override predicate hasName(string name) { this.getType().hasName(name) }
|
||||
|
||||
override string toString() { result = this.getType().toString() }
|
||||
override string toString() { result = pragma[only_bind_out](this.getType()).toString() }
|
||||
|
||||
override string getAPrimaryQlClass() { result = "Exception" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user