Files
kotlin-fork/idea/testData/debugger/tinyApp/src/forTests/MyJavaClass.java
T
Nikolay Krasko d6cface66f Make isFromJava check work for SAM adapter extension descriptors (KT-21538)
Consider all callable descriptor in JavaClassDescriptor to be from Java.

This is used to check if smart step into should be intercepted by Kotlin
handler or delegated to Java.

 #KT-21538 Fixed
2017-12-15 16:14:50 +03:00

58 lines
1.1 KiB
Java
Vendored

package forTests;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public class MyJavaClass {
public void testFun() {
int i = 1;
}
@NotNull
public String testNotNullFun() {
return "a";
}
public static int staticFun(Object s) {
return 1;
}
public static <T> T runReadAction(@NotNull Computable<T> computation) {
return computation.compute();
}
private static class PrivateJavaClass {
public final int prop = 1;
}
public static class BaseClass {
public final int i2 = 1;
}
public BaseClass getBaseClassValue() {
return new BaseClass();
}
public BaseClass getInnerClassValue() {
return new InnerClass();
}
public static class InnerClass extends BaseClass {
public final int i = 1;
}
public static class RawA<T> {
public int foo(List<T> p) {
return 1;
}
}
public static class RawADerived extends RawA {
}
// Method with sam conversion for step into test
public void other(Runnable runnable) {
runnable.run();
}
}