Fixed bug with bad conversion on paste when top-level java class copied

This commit is contained in:
Valentin Kipyatkov
2015-04-10 12:43:50 +03:00
parent aff17a9fa1
commit 965f3da2b1
9 changed files with 38 additions and 7 deletions
@@ -0,0 +1,8 @@
package javaPack
import org.jetbrains.annotations.NotNull;
public interface I {
@NotNull
String foo();
}
@@ -0,0 +1,9 @@
package to
import javaPack.I
public class C : I {
override fun foo(): String {
return ""
}
}
@@ -0,0 +1,11 @@
package javaPack
import org.jetbrains.annotations.NotNull;
<selection>public class C implements I {
@NotNull
@Override
public String foo() {
return "";
}
}</selection>
@@ -5,5 +5,3 @@ public object JavaClass {
println("Hello, world!")
}
}
fun main(args: Array<String>) = JavaClass.main(args)
@@ -1,4 +1,3 @@
// this test should cause the whole file to be converted at once (with non-selected text stripped) and the main function to be generated
package helloWorld;
// sample class