Skip to content

Commit 0235df8

Browse files
committed
C#: Improve alert message for RedundantToStringCall.ql
1 parent 426962e commit 0235df8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

csharp/ql/src/Useless code/RedundantToStringCall.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ where
2020
mc instanceof ImplicitToStringExpr and
2121
mc.getTarget() instanceof ToStringMethod and
2222
not mc.getQualifier() instanceof BaseAccess
23-
select mc, "Redundant call to 'ToString' on a String object."
23+
select mc, "Redundant call to 'ToString'."
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| RedundantToStringCall.cs:8:27:8:38 | call to method ToString | Redundant call to 'ToString' on a String object. |
2-
| RedundantToStringCall.cs:11:37:11:48 | call to method ToString | Redundant call to 'ToString' on a String object. |
3-
| RedundantToStringCall.cs:14:39:14:50 | call to method ToString | Redundant call to 'ToString' on a String object. |
4-
| RedundantToStringCall.cs:18:19:18:30 | call to method ToString | Redundant call to 'ToString' on a String object. |
5-
| RedundantToStringCallBad.cs:7:45:7:56 | call to method ToString | Redundant call to 'ToString' on a String object. |
1+
| RedundantToStringCall.cs:8:27:8:38 | call to method ToString | Redundant call to 'ToString'. |
2+
| RedundantToStringCall.cs:11:37:11:48 | call to method ToString | Redundant call to 'ToString'. |
3+
| RedundantToStringCall.cs:14:39:14:50 | call to method ToString | Redundant call to 'ToString'. |
4+
| RedundantToStringCall.cs:18:19:18:30 | call to method ToString | Redundant call to 'ToString'. |
5+
| RedundantToStringCallBad.cs:7:45:7:56 | call to method ToString | Redundant call to 'ToString'. |

0 commit comments

Comments
 (0)