Debugger: Add filter for Kotlin specific classes

#KT-2076 Fixed
This commit is contained in:
Natalia Ukhorskaya
2014-08-29 14:04:21 +04:00
parent f26ea299dc
commit 741f55d89c
19 changed files with 286 additions and 2 deletions
@@ -0,0 +1,12 @@
package checkNotNull
import stepInto.MyJavaClass
fun main(args: Array<String>) {
val myClass = MyJavaClass()
//Breakpoint!
val a: String = myClass.testNotNullFun()
val b = 1
}
// REPEAT: 3
@@ -0,0 +1,12 @@
package npe
fun main(args: Array<String>) {
val a = null
try {
//Breakpoint!
a!!
}
catch (e: Exception) {
val b = 1
}
}
@@ -0,0 +1,9 @@
package reflectKClass
fun main(args: Array<String>) {
//Breakpoint!
val a = A()
val b = 1
}
class A
@@ -1,7 +1,14 @@
package stepInto;
import org.jetbrains.annotations.NotNull;
public class MyJavaClass {
public void testFun() {
int i = 1;
}
@NotNull
public String testNotNullFun() {
return "a";
}
}