View by Classes

Findings - Overview

info Comparison of String parameter using == or != (Findbugs)

Comparison of String parameter using == or != in org.jcoderz.commons.util.StringUtil.equals(String, String)

Further info on the wiki.

This code compares a java.lang.String parameter for reference equality using the == or != operators. Requiring callers to pass only String constants or interned strings to a method is unnecessarily fragile, and rarely leads to measurable performance gains. Consider using the equals(Object) method instead.

1org.jcoderz.commons.util.StringUtil
 [298]