This rule is defined by the following Java class: net.sourceforge.pmd.rules.SimplifyBooleanReturns
Example:
public class Foo { private int bar =2; public boolean isBarEqualsTo(int x) { // this bit of code if (bar == x) { return true; } else { return false; } // can be replaced with a simple // return bar == x; } }