Handling null correctly when wrapping function in SAM wrapper

This commit is contained in:
Evgeny Gerashchenko
2013-06-27 20:37:27 +04:00
parent c6f6e6c756
commit 3e70661a6d
4 changed files with 29 additions and 0 deletions
@@ -0,0 +1,5 @@
class JavaClass {
public static String run(Runnable r) {
return r == null ? "OK" : "FAIL";
}
}