Nikita Eshkeev
cb47b00f60
[codeInsight] IDEA-240288 Inspection for StringBuilder.toString().substring()
...
This patch alters the `getRedundantStringBuilderToStringProblem` method with more sophisticated algorithm to detect unnecessary freestanding `StringBuilder#toString` calls. If the call is a part of a polyadic expression it checks if there is at least one string operand (either a constant literal or a local variable or a constant variable or a method call) and based on that information it detects redundant `StringBuilder#toString` calls.
Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com >
GitOrigin-RevId: e09ea8b8829ad9e28e8ff1bcfad34cf6b191aa6b
2020-05-12 00:59:21 +00:00
..
2020-03-17 20:53:55 +00:00
2019-12-24 08:41:04 +00:00
2020-04-30 04:48:14 +00:00
2019-10-03 16:04:14 +00:00
2019-12-18 11:37:51 +00:00
2019-12-18 06:32:21 +00:00
2020-01-29 06:33:37 +00:00
2019-08-12 19:04:15 +03:00
2020-02-12 06:13:13 +00:00
2020-04-01 05:04:47 +00:00
2019-06-16 04:03:21 +03:00
2020-01-21 11:08:24 +00:00
2019-10-14 10:32:59 +00:00
2020-04-01 12:31:42 +00:00
2020-03-03 05:32:05 +00:00
2020-01-31 12:35:15 +00:00
2019-07-29 16:00:42 +03:00
2019-12-24 08:41:04 +00:00
2020-01-10 05:13:48 +00:00
2019-08-19 13:03:31 +03:00
2020-01-31 12:35:15 +00:00
2020-04-01 12:31:42 +00:00
2020-04-10 07:40:25 +00:00
2019-06-16 04:03:21 +03:00
2020-01-10 07:02:33 +00:00
2020-01-20 07:41:05 +00:00
2020-01-22 06:03:40 +00:00
2019-07-02 06:52:16 +03:00
2020-01-22 06:03:40 +00:00
2020-04-01 12:31:42 +00:00
2020-04-01 12:31:42 +00:00
2019-07-11 17:42:27 +03:00
2019-06-16 08:15:42 +03:00
2020-03-19 09:32:07 +00:00
2019-07-02 06:52:16 +03:00
2019-08-06 13:03:24 +03:00
2019-10-02 15:08:26 +00:00
2019-12-13 09:34:22 +00:00
2019-10-11 15:33:13 +00:00
2020-02-13 07:10:21 +00:00
2020-03-31 11:04:26 +00:00
2019-12-25 03:42:32 +00:00
2020-04-17 07:25:45 +00:00
2019-08-05 23:03:36 +03:00
2019-07-12 08:28:33 +03:00
2020-04-22 10:20:29 +00:00
2019-07-08 15:09:05 +03:00
2020-04-24 15:29:10 +00:00
2020-01-16 08:11:51 +00:00
2020-01-16 08:11:51 +00:00
2020-01-17 06:42:32 +00:00
2020-04-01 12:31:42 +00:00
2019-08-15 18:04:21 +03:00
2019-10-17 06:31:25 +00:00
2020-05-01 09:40:21 +00:00
2020-04-01 12:31:42 +00:00
2019-08-22 01:50:10 +03:00
2020-05-12 00:59:21 +00:00
2019-11-28 20:32:03 +00:00
2020-04-01 12:31:42 +00:00
2020-01-21 07:34:21 +00:00
2020-01-21 07:34:21 +00:00
2019-10-11 12:32:08 +00:00
2019-12-14 03:44:42 +00:00
2020-01-03 12:03:57 +00:00
2019-07-02 06:52:16 +03:00
2019-10-08 10:01:33 +00:00
2019-07-02 06:52:16 +03:00
2020-01-23 11:08:32 +00:00
2020-01-26 10:14:30 +00:00
2020-02-11 10:36:25 +00:00
2019-06-16 04:03:21 +03:00
2020-04-08 08:41:53 +00:00
2020-03-17 20:53:55 +00:00
2020-01-09 11:32:03 +00:00
2020-04-20 10:45:12 +00:00
2020-01-24 06:32:55 +00:00
2019-07-13 00:03:02 +03:00
2019-07-13 00:03:02 +03:00
2020-04-22 10:42:28 +00:00
2019-07-02 06:52:16 +03:00