mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
1.0 KiB
1.0 KiB
0.8.4
Minor Analysis Improvements
- The diagnostic query
java/diagnostics/successfully-extracted-files, and therefore the Code Scanning UI measure of scanned Java files, now considers any Java file seen during extraction, even one with some errors, to be extracted / scanned. - Switch cases using binding patterns and
case null[, default]are now supported. ClassesPatternCaseandNullDefaultCaseare introduced to represent new kinds of case statement. - Both switch cases and instanceof expressions using record patterns are now supported. The new class
RecordPatternExpris introduced to represent record patterns, andInstanceOfExprgainsgetPatternto replacegetLocalVariableDeclExpr. - The control-flow graph and therefore dominance information regarding switch blocks in statement context but with an expression rule (e.g.
switch(...) { case 1 -> System.out.println("Hello world!") }) has been fixed. This reduces false positives and negatives from various queries relating to functions featuring such statements.