Intention to convert assert to an if with throw
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
fun foo() {
|
||||
<spot>if (!true) {
|
||||
throw AssertionException("text")
|
||||
}</spot>
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun foo() {
|
||||
<spot>assert(true, "text")</spot>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts an assert into an if statement that throws an exception if the condition is false
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user