Class SimplifyStartsWith

All Implemented Interfaces:
ICountMutatorIssues, IJavaparserAstMutator, IJavaparserNodeMutator, IMutator, IMutatorExternalReferences, IWalkingMutator<com.github.javaparser.ast.Node,com.github.javaparser.ast.Node>

@Deprecated(since="Dropped with PMD 7.0") public class SimplifyStartsWith extends AJavaparserExprMutator
Deprecated.
Turns `line.startsWith("#") || line.isEmpty()` into `line.isEmpty() || line.charAt('0') == '#'`
Author:
Benoit Lacelle
  • Constructor Details

    • SimplifyStartsWith

      public SimplifyStartsWith()
      Deprecated.
  • Method Details

    • minimalJavaVersion

      public String minimalJavaVersion()
      Deprecated.
    • getTags

      public Set<String> getTags()
      Deprecated.
    • getPmdId

      public Optional<String> getPmdId()
      Deprecated.
    • pmdUrl

      public String pmdUrl()
      Deprecated.
    • getLegacyIds

      public Set<String> getLegacyIds()
      Deprecated.
    • isDraft

      public boolean isDraft()
      Deprecated.
    • processExpression

      protected boolean processExpression(NodeAndSymbolSolver<com.github.javaparser.ast.expr.Expression> expr)
      Deprecated.
      Overrides:
      processExpression in class AJavaparserExprMutator