View by Classes

Findings - Overview

code-style SimplifyStartsWith (PMD)

This call to String.startsWith can be rewritten using String.charAt(0)

Further info on the wiki.
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.

3org.jcoderz.phoenix.chart2d.Chart2DHandlerImpl
 [430:11],  [568:11],  [756:11]
2org.jcoderz.commons.util.XsdUtil
 [108:11],  [134:11]
1org.jcoderz.phoenix.report.JDepend
 [193:20]