Since it passes in a literal of length 1, this call to String.startsWith can be rewritten using String.charAt(0) to save some time.public class Foo { boolean checkIt(String x) { return x.startsWith("a"); } }Additional info can be found at this http://pmd.sourceforge.net/rules/optimizations.html#SimplifyStartsWith site.
| 3 | org.jcoderz.phoenix.chart2d.Chart2DHandlerImpl |
| [430:11], [568:11], [756:11] | |
| 2 | org.jcoderz.commons.util.XsdUtil |
| [108:11], [134:11] | |
| 1 | org.jcoderz.phoenix.report.JDepend |
| [193:20] | |