Fixed bug with bad conversion on paste when top-level java class copied
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user