SimplifyBooleanReturns does not handle the scenario when no else statement is present. Request to add in a check that would flag this method
public boolean exists(Object obj) { if (myObjectList.contains(obj)) { return true; } return false; }
Will be included with the next release.
Log in to post a comment.
Will be included with the next release.