Skip to content

Commit 8cb6598

Browse files
committed
fixing that I put a type on the wrong thing in the alert-message
1 parent 018b066 commit 8cb6598

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

java/ql/src/Likely Bugs/Arithmetic/InformationLoss.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ where
4545
v = a.getDest()
4646
)
4747
select a,
48-
"Implicit cast of $@ to narrower destination type " + a.getDest().getType().getName() + ".", v,
49-
"source type " + e.getType().getName()
48+
"Implicit cast of source type " + e.getType().getName() + " to narrower destination type $@.", v,
49+
a.getDest().getType().getName()
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| Test.java:68:5:68:25 | ...+=... | Implicit cast of $@ to narrower destination type int. | Test.java:64:4:64:13 | int i | source type long |
2-
| Test.java:87:4:87:9 | ...+=... | Implicit cast of $@ to narrower destination type int. | Test.java:81:4:81:13 | int i | source type long |
3-
| Test.java:289:5:289:30 | ...+=... | Implicit cast of $@ to narrower destination type int. | Test.java:285:4:285:27 | int[] arr | source type long |
4-
| Test.java:293:7:293:44 | ...+=... | Implicit cast of $@ to narrower destination type int. | Test.java:293:7:293:24 | ...[...] | source type long |
1+
| Test.java:68:5:68:25 | ...+=... | Implicit cast of source type long to narrower destination type $@. | Test.java:64:4:64:13 | int i | int |
2+
| Test.java:87:4:87:9 | ...+=... | Implicit cast of source type long to narrower destination type $@. | Test.java:81:4:81:13 | int i | int |
3+
| Test.java:289:5:289:30 | ...+=... | Implicit cast of source type long to narrower destination type $@. | Test.java:285:4:285:27 | int[] arr | int |
4+
| Test.java:293:7:293:44 | ...+=... | Implicit cast of source type long to narrower destination type $@. | Test.java:293:7:293:24 | ...[...] | int |

0 commit comments

Comments
 (0)