mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] Update try-catch pattern
#KTIJ-22126 Fixed GitOrigin-RevId: 30370df90fe89ff7c84e6cf7c3c5632f4ea0c6b5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
92093a94f4
commit
38596b2a2e
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ fun foo() {
|
||||
a = "aaa"
|
||||
"aaa"
|
||||
} catch (e: <selection>Exception</selection>) {
|
||||
TODO()
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
|
||||
a.charAt(1)
|
||||
|
||||
+1
-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)
|
||||
|
||||
+1
-1
@@ -3,6 +3,6 @@ fun foo() {
|
||||
"aaa"
|
||||
"aaa"
|
||||
} catch (e: <selection>Exception</selection>) {
|
||||
TODO()
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,6 +2,6 @@ fun foo() {
|
||||
try {
|
||||
"aaa"
|
||||
} catch (e: <selection>Exception</selection>) {
|
||||
TODO()
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,7 +3,7 @@ fun foo() {
|
||||
"aaa"
|
||||
"aaa"
|
||||
} catch (e: <selection>Exception</selection>) {
|
||||
TODO()
|
||||
TODO("Not yet implemented")
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@ fun foo() {
|
||||
try {
|
||||
"aaa"
|
||||
} catch (e: <selection>Exception</selection>) {
|
||||
TODO()
|
||||
TODO("Not yet implemented")
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user