mirai/tools/intellij-plugin/resources/intentionDescriptions/WrapWithResourceUseCallJavaIntention/description.html
Him188 fada587297
Resource not closed inspection (#286)
* Initial support of ResourceNotClosedInspection, #283

* Improve UsingStringPlusMessageInspection

* Add fix for sendAsImageTo and uploadAsImage

* Add Fix for ResourceNotClosedInspection

* ResourceNotClosedInspection support for Java

* Add WrapWithResourceUseCallIntention for Kotlin, #284
2021-02-05 21:45:39 +08:00

8 lines
205 B
HTML

<html>
<body>
<p>将资源直接使用转换为 `.use { ... }`
</p>
<!-- tooltip end -->
<p>将 `resource.sendAsImageTo(contact)` 转换为 `resource.use { it.sendAsImageTo(contact) }` </p>
</body>
</html>