mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Data flow: Use Boolean class
This commit is contained in:
@@ -5,6 +5,12 @@
|
||||
*
|
||||
* As opposed to `boolean`, this type does not require explicit binding.
|
||||
*/
|
||||
class Boolean extends boolean {
|
||||
final class Boolean extends FinalBoolean {
|
||||
Boolean() { this = [true, false] }
|
||||
|
||||
/** Returns either "true" or "false". */
|
||||
// reimplement to avoid explicit binding
|
||||
string toString() { result = super.toString() }
|
||||
}
|
||||
|
||||
final private class FinalBoolean = boolean;
|
||||
|
||||
Reference in New Issue
Block a user