[kotlin] Update try-catch pattern

#KTIJ-22126 Fixed

GitOrigin-RevId: 30370df90fe89ff7c84e6cf7c3c5632f4ea0c6b5
This commit is contained in:
Vladimir Dolzhenko
2022-07-08 10:36:57 +00:00
committed by intellij-monorepo-bot
parent 92093a94f4
commit 38596b2a2e
11 changed files with 11 additions and 11 deletions
@@ -11,7 +11,7 @@ public class KotlinTryCatchFinallySurrounder extends KotlinTrySurrounderBase {
@Override
protected String getCodeTemplate() {
return "try { \n} catch(e: Exception) {\nTODO()\n} finally {\n}";
return "try { \n} catch(e: Exception) {\nTODO(\"Not yet implemented\")\n} finally {\n}";
}
@NotNull
@@ -11,7 +11,7 @@ public class KotlinTryCatchSurrounder extends KotlinTrySurrounderBase {
@Override
protected String getCodeTemplate() {
return "try { \n} catch(e: Exception) {\nTODO()\n}";
return "try { \n} catch(e: Exception) {\nTODO(\"Not yet implemented\")\n}";
}
@NotNull
@@ -2,6 +2,6 @@ fun foo(x: Boolean) {
try {
x
} catch (e: Exception) {
TODO()
TODO("Not yet implemented")
}
}
@@ -3,6 +3,6 @@ fun foo() {
for (i in 1..100) {
}
} catch (e: Exception) {
TODO()
TODO("Not yet implemented")
}
}
@@ -2,6 +2,6 @@ fun foo() {
try {
val x = 1
} catch (e: Exception) {
TODO()
TODO("Not yet implemented")
}
}
@@ -4,7 +4,7 @@ fun foo() {
a = "aaa"
"aaa"
} catch (e: <selection>Exception</selection>) {
TODO()
TODO("Not yet implemented")
}
a.charAt(1)
@@ -2,7 +2,7 @@ fun foo() {
val a = try {
"aaa"
} catch (e: <selection><caret>Exception</selection>) {
TODO()
TODO("Not yet implemented")
}
a.charAt(1)
@@ -3,6 +3,6 @@ fun foo() {
"aaa"
"aaa"
} catch (e: <selection>Exception</selection>) {
TODO()
TODO("Not yet implemented")
}
}
@@ -2,6 +2,6 @@ fun foo() {
try {
"aaa"
} catch (e: <selection>Exception</selection>) {
TODO()
TODO("Not yet implemented")
}
}
@@ -3,7 +3,7 @@ fun foo() {
"aaa"
"aaa"
} catch (e: <selection>Exception</selection>) {
TODO()
TODO("Not yet implemented")
} finally {
}
}
@@ -2,7 +2,7 @@ fun foo() {
try {
"aaa"
} catch (e: <selection>Exception</selection>) {
TODO()
TODO("Not yet implemented")
} finally {
}
}