Tagir Valeev and intellij-monorepo-bot
3fb0b781f6
IDEA-382020 [java-inspections]: 'Split declaration and initializer' produces exception when injection is used
...
Analysis: `CodeStyleManager::reformat` inside ModCommand triggers reformatting of the injected fragment as well (IJPL-35687), but due to implementation deficiency, the injected fragment always has the event system enabled, even for a non-physical host file. Fixing this in the platform looks hard, but we can avoid reformatting the injection inside the intention.
Implementation-wise, I used the CodeBlockSurrounder which does the similar thing but does not have the reformatting problem. I also improved CodeBlockSurrounder to support corner cases and added more tests.
GitOrigin-RevId: c7467aa5771489c95698dc01b487059d87d655c3
2025-11-14 14:41:00 +00:00
..
2018-06-26 12:04:00 +07:00
2024-09-05 12:54:57 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2023-02-14 13:53:56 +00:00
2022-07-29 17:55:13 +00:00
2018-06-26 12:04:00 +07:00
2018-06-26 12:04:00 +07:00
2023-02-14 13:53:56 +00:00
2022-07-29 17:55:13 +00:00
2023-01-26 00:04:15 +00:00
2022-07-29 17:55:13 +00:00
2023-01-26 00:04:15 +00:00
2023-04-17 10:53:11 +00:00
2024-06-25 13:54:11 +00:00
2018-06-26 15:46:35 +07:00
2023-02-14 13:53:56 +00:00
2018-06-26 12:04:00 +07:00
2018-06-26 12:04:00 +07:00
2025-11-14 14:41:00 +00:00
2017-01-27 17:41:53 +07:00
2023-09-29 17:40:46 +00:00
2019-04-18 13:04:43 +07:00
2023-02-14 13:53:56 +00:00
2023-02-14 13:53:56 +00:00
2023-06-25 19:05:51 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2018-10-03 13:46:47 +07:00
2023-02-14 13:53:56 +00:00
2023-02-14 13:53:56 +00:00
2023-02-14 13:53:56 +00:00
2022-07-29 17:55:13 +00:00
2019-06-16 04:03:21 +03:00
2023-02-14 13:53:56 +00:00
2018-06-26 12:04:00 +07:00
2018-07-27 13:09:38 +07:00
2022-07-29 17:55:13 +00:00
2018-11-08 17:30:50 +07:00
2018-06-26 12:04:00 +07:00
2023-04-24 11:48:09 +00:00
2018-06-26 12:04:00 +07:00
2022-07-29 17:55:13 +00:00
2018-06-26 12:04:00 +07:00
2022-07-29 17:55:13 +00:00
2023-04-17 10:53:11 +00:00
2018-09-07 17:02:26 +07:00
2017-01-27 17:41:53 +07:00
2018-06-26 12:04:00 +07:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2018-06-26 12:04:00 +07:00
2023-02-14 13:53:56 +00:00
2020-11-24 04:36:33 +00:00
2022-07-29 17:55:13 +00:00
2023-02-14 13:53:56 +00:00
2023-09-29 17:40:46 +00:00
2022-07-29 17:55:13 +00:00
2023-02-14 13:53:56 +00:00
2018-06-26 12:04:00 +07:00
2020-07-20 05:04:11 +00:00
2023-02-14 13:53:56 +00:00
2023-02-14 13:53:56 +00:00
2018-10-02 16:36:15 +07:00
2017-01-27 17:41:53 +07:00
2024-09-05 12:54:57 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2017-01-27 17:41:53 +07:00
2017-02-17 11:15:58 +07:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2017-01-27 17:41:53 +07:00
2018-09-17 09:30:59 +07:00
2018-06-26 12:36:58 +07:00
2022-07-29 17:55:13 +00:00
2017-01-27 17:41:53 +07:00
2017-02-02 21:52:15 +03:00
2017-01-27 17:41:53 +07:00
2017-09-12 13:34:43 +07:00
2017-01-27 17:41:53 +07:00
2018-09-19 12:26:21 +07:00
2016-11-03 09:47:40 +07:00
2018-02-05 15:53:39 +07:00
2017-01-27 17:41:53 +07:00
2020-02-11 10:36:25 +00:00
2018-10-02 16:36:15 +07:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2018-10-03 13:46:47 +07:00
2017-08-24 15:25:19 +07:00
2022-07-29 17:55:13 +00:00
2017-03-01 12:37:17 +07:00
2022-07-29 17:55:13 +00:00
2017-02-03 00:19:56 +03:00
2022-07-29 17:55:13 +00:00
2018-11-08 17:30:50 +07:00
2018-03-12 15:24:01 +07:00
2023-04-24 11:48:09 +00:00
2022-07-29 17:55:13 +00:00
2017-01-27 17:41:53 +07:00
2022-07-29 17:55:13 +00:00
2018-09-07 17:02:26 +07:00
2017-01-27 17:41:53 +07:00
2017-01-27 17:41:53 +07:00
2016-11-01 15:38:57 +07:00
2017-01-27 17:41:53 +07:00
2017-01-27 17:41:53 +07:00
2016-12-12 19:12:02 +07:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2023-09-29 17:40:46 +00:00
2022-07-29 17:55:13 +00:00
2017-02-03 17:07:29 +03:00
2017-01-27 17:41:53 +07:00
2020-07-20 05:04:11 +00:00
2022-07-29 17:55:13 +00:00
2022-07-29 17:55:13 +00:00
2016-11-03 09:47:40 +07:00
2018-10-02 16:36:15 +07:00