KT-12100 convert try / finally to use: report intention only at try {

This commit is contained in:
Mikhail Glukhikh
2016-12-01 19:36:53 +03:00
parent 0cc52e2ff8
commit 9ea326870d
14 changed files with 63 additions and 40 deletions
@@ -0,0 +1,13 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
import java.io.File
fun main(args: Array<String>) {
val reader = File("hello-world.txt").bufferedReader()
try {
reader.readLine()
}
finally {
<caret>reader.close()
}
}