Add resources-en for idea
#KT-38297 Fixed
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
fun main(args: Array<String>) {
|
||||
val writer = File("hello-world.txt").bufferedReader()
|
||||
writer.use { writer ->
|
||||
// do stuff with writer
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
fun main(args: Array<String>) {
|
||||
val writer = File("hello-world.txt").bufferedReader()
|
||||
try {
|
||||
// do stuff with writer
|
||||
}
|
||||
finally {
|
||||
writer.close()
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts a <b>try-finally</b> block with <b>resource.close()</b> in <b>finally</b> into a <b>resource.use()</b> call.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user