Win a copy of Barcodes with iOS this week in the iOS forum or Core Java for the Impatient in the Java 8 forum!
Siddhesh Deodhar wrote:I use FindBugs. It shows me all the places where exception can come in future.
example. suppose i have a method
public boolean compareValue(String cmpStr)
On this if i run findbug, it warns me at line if(cmpStr.equals("yes").
It says dont do cmpStr.equals("yes") do "yes".equals(cmpStr)