Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Avoid unnecessary comparisons in boolean expressions - this complicates simple code. Example :
<pre>
public class Bar {
 // can be simplified to
 // bar = isFoo();
 private boolean bar = (isFoo() == true);

 public isFoo() { return false;}
}
</pre>
New to GrepCode? Check out our FAQ X