Remove ConvertIfWithThrowToAssertIntention

Relates to #KT-31502
This commit is contained in:
Dmitry Gridin
2019-05-27 19:09:55 +07:00
parent d3339cae46
commit afcb2f3436
28 changed files with 0 additions and 310 deletions
@@ -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) {}
@@ -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")
}
}
@@ -1,4 +0,0 @@
// WITH_RUNTIME
fun foo() {
assert(!true) { "text" }
}
@@ -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
}
}
@@ -1,8 +0,0 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
fun foo() {
if <caret>(1 == 0) {
val y = 1
throw AssertionError("text")
}
}
@@ -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")
}
}
@@ -1,4 +0,0 @@
// WITH_RUNTIME
fun foo() {
assert(1 != 0) { "text" }
}