Remove ConvertIfWithThrowToAssertIntention
Relates to #KT-31502
This commit is contained in:
@@ -1 +0,0 @@
|
||||
org.jetbrains.kotlin.idea.intentions.ConvertIfWithThrowToAssertIntention
|
||||
@@ -1,8 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if <caret>(true) {
|
||||
throw AssertionError("text")
|
||||
}
|
||||
}
|
||||
|
||||
fun assert(x: Boolean, y: Any) {}
|
||||
@@ -1,6 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
kotlin.assert(!true) { "text" }
|
||||
}
|
||||
|
||||
fun assert(x: Boolean, y: Any) {}
|
||||
@@ -1,10 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
package foo.kotlin
|
||||
|
||||
fun foo() {
|
||||
if <caret>(true) {
|
||||
throw AssertionError("text")
|
||||
}
|
||||
}
|
||||
|
||||
fun assert(x: Boolean, y: Any) {}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
package foo.kotlin
|
||||
|
||||
fun foo() {
|
||||
kotlin.assert(!true) { "text" }
|
||||
}
|
||||
|
||||
fun assert(x: Boolean, y: Any) {}
|
||||
@@ -1,7 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
val x = true
|
||||
if <caret>(x && false) {
|
||||
throw AssertionError("text")
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
val x = true
|
||||
assert(!(x && false)) { "text" }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if <caret>(true) {
|
||||
throw java.lang.AssertionError("text")
|
||||
}
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
assert(!true) { "text" }
|
||||
}
|
||||
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if <caret>(1 == 0) {
|
||||
throw AssertionError("text")
|
||||
}
|
||||
}
|
||||
|
||||
class AssertionError(x: String): Exception(x) {}
|
||||
@@ -1,8 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
// MIN_JAVA_VERSION: 1.7
|
||||
fun foo() {
|
||||
if <caret>(1 == 0) {
|
||||
throw AssertionError("text", Exception())
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if <caret>(1 == 0) {
|
||||
throw AssertionError("text")
|
||||
} else {
|
||||
val x = 1
|
||||
}
|
||||
}
|
||||
Vendored
-8
@@ -1,8 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if <caret>(1 == 0) {
|
||||
val y = 1
|
||||
throw AssertionError("text")
|
||||
}
|
||||
}
|
||||
Vendored
-8
@@ -1,8 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if <caret>(1 == 0) {
|
||||
throw AssertionError("text")
|
||||
val y = 1
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if <caret>(true) {
|
||||
throw AssertionError()
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
assert(!true)
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if <caret>(true) {
|
||||
throw AssertionError(null)
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
assert(!true)
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if <caret>(true) {
|
||||
throw AssertionError("text")
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
assert(!true) { "text" }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
if <caret>(1 == 0) {
|
||||
throw AssertionError("text")
|
||||
}
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo() {
|
||||
assert(1 != 0) { "text" }
|
||||
}
|
||||
Reference in New Issue
Block a user