Corrected/removed tests related to on-the-fly import optimization
This commit is contained in:
-5
@@ -1,5 +0,0 @@
|
||||
package bar;
|
||||
|
||||
public interface Bar {
|
||||
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
package bar;
|
||||
|
||||
public interface Other {
|
||||
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
package foo;
|
||||
|
||||
import bar.Bar;
|
||||
import bar.Other;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Foo {
|
||||
abstract public Bar foo(ArrayList<Integer> list, Other other);
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
package foo
|
||||
|
||||
class Impl: Foo() {
|
||||
<caret>
|
||||
}
|
||||
|
||||
// KT-4732 Override/Implement action does not add all imports when "Optimize imports on the fly" is enabled
|
||||
Vendored
-13
@@ -1,13 +0,0 @@
|
||||
package foo
|
||||
|
||||
import bar.Bar
|
||||
import bar.Other
|
||||
import java.util.ArrayList
|
||||
|
||||
class Impl: Foo() {
|
||||
override fun foo(list: ArrayList<Int>?, other: Other?): Bar? {
|
||||
<selection><caret>throw UnsupportedOperationException()</selection>
|
||||
}
|
||||
}
|
||||
|
||||
// KT-4732 Override/Implement action does not add all imports when "Optimize imports on the fly" is enabled
|
||||
@@ -1,5 +0,0 @@
|
||||
// OPTIMIZE_IMPORTS: true
|
||||
// NAME_COUNT_TO_USE_STAR_IMPORT: 1
|
||||
import java.util.HashMap
|
||||
|
||||
val v: HashMap<String, <selection>java.util.Date</selection>>
|
||||
@@ -1,5 +0,0 @@
|
||||
// OPTIMIZE_IMPORTS: true
|
||||
// NAME_COUNT_TO_USE_STAR_IMPORT: 1
|
||||
import java.util.*
|
||||
|
||||
val v: HashMap<String, Date>
|
||||
@@ -1,4 +1,3 @@
|
||||
// OPTIMIZE_IMPORTS: true
|
||||
import java.util.Date
|
||||
|
||||
val x = <selection>java.sql.Date(1)</selection>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// OPTIMIZE_IMPORTS: true
|
||||
import java.sql.Date
|
||||
import java.sql
|
||||
import java.util.Date
|
||||
|
||||
val x = Date(1)
|
||||
val x = sql.Date(1)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// OPTIMIZE_IMPORTS: true
|
||||
import java.util.Date
|
||||
|
||||
class A : <selection>java.sql.Date</selection>
|
||||
@@ -1,4 +1,4 @@
|
||||
// OPTIMIZE_IMPORTS: true
|
||||
import java.sql.Date
|
||||
import java.sql
|
||||
import java.util.Date
|
||||
|
||||
class A : Date
|
||||
class A : sql.Date
|
||||
@@ -1,4 +0,0 @@
|
||||
// OPTIMIZE_IMPORTS: true
|
||||
import java.io.*
|
||||
|
||||
<selection>class A(val d: java.sql.Date, val rs: java.sql.ResultSet)</selection>
|
||||
@@ -1,5 +0,0 @@
|
||||
// OPTIMIZE_IMPORTS: true
|
||||
import java.sql.Date
|
||||
import java.sql.ResultSet
|
||||
|
||||
class A(val d: Date, val rs: ResultSet)
|
||||
Reference in New Issue
Block a user