Verified Commit a0efee4c authored by ubduq's avatar ubduq

Add test case for missing return statement

parent 7fdbf35e
class MissingReturnStatement {
public static void main(String[] args) {
MissingReturnStatement obj = new MissingReturnStatement();
boolean x = obj.test(5, 0);
}
public boolean test(int a, int b) {
if (a < b) {
return false;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment