Handling null correctly when wrapping function in SAM wrapper
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class JavaClass {
|
||||
public static String run(Runnable r) {
|
||||
return r == null ? "OK" : "FAIL";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user