Fix test data of QuickFixTest
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'INTEGER_OVERFLOW' for fun foo
|
||||
|
||||
[Ann(Integer.MAX_VALUE<caret> + 1)]
|
||||
fun foo() {}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for class Child
|
||||
|
||||
open class Base(s: String)
|
||||
class Child: Base(""<caret>!!)
|
||||
@@ -1,3 +1,5 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for fun foo
|
||||
// ACTION: Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for parameter s
|
||||
|
||||
fun foo(s: String = ""<caret>!!) {}
|
||||
@@ -1,3 +1,4 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for fun foo
|
||||
|
||||
fun foo() = ""<caret>!!
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for fun foo
|
||||
// ACTION: Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for val bar
|
||||
|
||||
fun foo() {
|
||||
val bar = ""<caret>!!
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'REDUNDANT_NULLABLE' for fun foo
|
||||
// ACTION: Suppress 'REDUNDANT_NULLABLE' for parameter s
|
||||
|
||||
fun foo(s: String?<caret>?) {}
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'REDUNDANT_NULLABLE' for fun foo
|
||||
// ACTION: Suppress 'REDUNDANT_NULLABLE' for parameter x
|
||||
|
||||
fun foo() {
|
||||
any {
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for val foo
|
||||
|
||||
val foo = ""<caret>!!
|
||||
@@ -1,4 +1,5 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for fun foo
|
||||
|
||||
fun foo() {
|
||||
object : Base(""<caret>!!) {
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for fun foo
|
||||
// ACTION: Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for val a
|
||||
|
||||
fun foo() {
|
||||
val a = object : Base(""<caret>!!) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
|
||||
// ACTION: Suppress 'REDUNDANT_NULLABLE' for class Child
|
||||
|
||||
open class Base<T>
|
||||
class Child: Base<String?<caret>?>()
|
||||
Reference in New Issue
Block a user