All Classes and Interfaces
Class
Description
Enables common behavior to JavaParser-based rules
This mutator will apply all
IMutator
s,even those considered not production-readyThis mutator will apply all
IMutator
sTurns 'Arrays.asList("1", 2).stream()' into 'Arrays.stream("1", 2)'
Helps preparing rules
Deprecated.
Turns 'boolean b = (x > 1 ) ? true : callback.doIt() || true' into 'if (x > 1) { ...
This mutator will apply all
IMutator
fixing a CheckStyle rules.Turns 'd == Double.NaN' into 'Double.isNaN(d)'
This mutator make it easy to composite multiple
IMutator
s in a single one.cases inspired from #description
Prevent relying .equals on
Enum
typesList the JDK versions
For classes knowing how to modify code
Helpers knowing what could be the impact of given rule
Helps understand why a rule is relevant, given other systems implementing the rule
Formatter for Java
This class is dedicated to refactoring.
The configuration of
JavaRefactorer
.Migrate from JUnit4 to JUnit5/Jupiter
Switch o.equals("someString") to "someString".equals(o)
Turns 'int i = 10;' into 'var i = 10'
Order modifiers according the the Java specification.
Scans dynamically for available rules
Make easier processing on code-tree
Turns '!o.isEmpty()' into 'o.isPresent()'
This mutator will apply all
IMutator
fixing a PMD rules.Clean the way of converting primitives into
String
.This mutator will apply all
IMutator
considered safe (e.g.This mutator will apply all
IMutator
fixing a Sonar rule.Turns 's.filter(p).findAny().isPresent()' into 's.anyMatch(predicate)'
Turns '"someString".toString()' into '"someString"'
Turns 'java.lang.String' into 'String'
Deprecated.
Deprecated.
Turns 's.indexOf("s")’ into ’s.indexOf('s')'.
Migrate from 'm.size() == 0’ to ’m.isEmpty()'.