Commit 977eb5c
committed
Avoid inconsistent implicit toString on potential string subtypes
Fix cases where the compiler cannot prove types don't extend string:
1. FileSystem.qll: Add toString() to ContainerBase signature. The
instantiation sites already provide toString(), so no changes needed
there. Container.toString() now delegates to super.toString().
No behaviour change.
2. DataFlowImplCommon.qll: Content.toString() now delegates to
super.toString() instead of returning the literal "Content".
This is a behaviour change: Content now displays its actual
description (e.g. field names) rather than the generic "Content".1 parent a945f15 commit 977eb5c
File tree
2 files changed
+9
-2
lines changed2 files changed
+9
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| |||
206 | 213 | | |
207 | 214 | | |
208 | 215 | | |
209 | | - | |
| 216 | + | |
210 | 217 | | |
211 | 218 | | |
212 | 219 | | |
| |||
0 commit comments