Merge pull request #21412 from aschackmull/java/binary-assignment

Java: Make Assignment extend BinaryExpr.
This commit is contained in:
Anders Schack-Mulligen
2026-03-05 13:19:45 +01:00
committed by GitHub
28 changed files with 5032 additions and 110 deletions

View File

@@ -11,7 +11,9 @@ string ppGuard(Guard g, Boolean branch) {
or
exists(BinaryExpr bin |
bin = g and
result = "'" + bin.getLeftOperand() + bin.getOp() + bin.getRightOperand() + ":" + branch + "'"
result =
"'" + bin.getLeftOperand() + " " + bin.getOp() + " " + bin.getRightOperand() + ":" + branch +
"'"
)
or
exists(SwitchCase cc, Expr s, string match, string value |

View File

@@ -1,3 +1,3 @@
| StringComparison.java:23:6:23:19 | ... == ... | String values compared with == . |
| StringComparison.java:26:6:26:16 | ... == ... | String values compared with == . |
| StringComparison.java:29:6:29:20 | ... == ... | String values compared with == . |
| StringComparison.java:23:6:23:19 | ... == ... | String values compared with ==. |
| StringComparison.java:26:6:26:16 | ... == ... | String values compared with ==. |
| StringComparison.java:29:6:29:20 | ... == ... | String values compared with ==. |