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
@@ -4,10 +4,10 @@ import java.io.File
fun main(args: Array<String>) {
val reader = File("hello-world.txt").bufferedReader()
try {
try<caret> {
reader.readLine()
}
<caret>finally {
finally {
reader.readLine()
reader.close()
}