All Classes and Interfaces

Class
Description
Most AJavaparserMutator will trigger over an Expression
Enables common behavior to JavaParser-based rules
Most AJavaparserMutator will trigger over an Statement
Deprecated.
Turns 'Arrays.asList("1", 2).stream()' into 'Arrays.stream("1", 2)'
Helps preparing rules
Migrate from 'm.size() == 0’ to ’m.isEmpty()'.
Deprecated.
Turns 'boolean b = (x > 1 ) ? true : callback.doIt() || true' into 'if (x > 1) { ...
Turns `throws RuntimeException` into ``
This mutator will apply all IMutator fixing a CheckStyle rules.
Turns 's.indexOf(subString) >= 0' into 'c.contains(subString)' in String
Turns `list.isEmpty() ? Optional.empty() : Optional.of(list.get(0))` into `list.stream().findFirst()`
Turns 'd == Double.NaN' into 'Double.isNaN(d)'
cases inspired from #description
Turns '{}' into ''
See EnhancedForLoopToStreamAnyMatchCases
See EnhancedForLoopToStreamCollectCases
Prevent relying .equals on Enum types
This mutator will apply all IMutator fixing ErrorProne rules.
Turns 'Strings.repeat("abc", 3)` into `"abc".repeat(3)`
This mutator will apply all IMutator improving Guava usage.
Turns 's == null || s.isEmpty()` into `Strings.isNullOrEmpty(s)`
An IMutator which can edit a JavaParser Node
Helpers knowing what could be the impact of given rule
Formatter for Java
This class is dedicated to refactoring.
 
This mutator will apply all IMutator fixing ErrorProne rules.
Migrate from JUnit4 to JUnit5/Jupiter.
Turns `.stream(s -> s.size())` into `.stream(String::size)`
Turns '.stream(s -> {return s.subString(0, 2)})' into '.stream(s -> s.subString(0, 2))'
Switch o.equals("someString") to "someString".equals(o)
Turns 'int i = 10;' into 'var i = 10'
Order modifiers according the the Java specification.
Turns 'Object.equals(1, 5)` into `1 == 5`
Turns 'Object.hashCode(1)` into `Integer.hashCode(1)`
Make easier processing on code-tree
Turns '!o.isEmpty()' into 'o.isPresent()'
This mutator will apply all IMutator fixing a PMD rules.
Turns `new Double(d)` into `Double.valueOf(d)`
Turns `!strings.stream().anyMatch(p)` into `strings.stream().noneMatch(p)`
Turns 'c.removeAll(c)' into 'c.clear()' in Collection
Turns '!!someBoolean()' into 'someBoolean()'
Turns 'SomeClassWithConstructor(){super(); someMethod();}` into `SomeClassWithConstructor(){someMethod();}`
Deprecated.
This mutator will apply all IMutator considered safe (e.g.
This mutator will apply all IMutator considered not-trivial.
This mutator will apply all IMutator considered safe (e.g.
 
Turns `line.startsWith("#") || line.isEmpty()` into `line.isEmpty() || line.charAt('0') == '#'`
Turns `.anyMatch(element -> element.getClassName().equals(targetClassName))` into `.map(Element::getClassName).anyMatch( elementClassName -> elementClassName.equals(targetClassName))`
This mutator will apply all IMutator fixing a Sonar rule.
This mutator will apply all IMutator fixing SpotBugs rules.
Turns 's.filter(p).findAny().isPresent()' into 's.anyMatch(predicate)'
Helps building mutators around Stream
Turns 's.indexOf(subString) >= 0' into 'c.contains(subString)' in String
Turns '"someString".toString()' into '"someString"'
Turns `Integer integer = Integer.valueOf(2)` into `Integer integer = 2`
Turns 'java.lang.String' into 'String'
Collects the ImportDeclaration associated to a Node into a List
Remove imports from a Java source file by analyzing ImportDeclaration.
Turns '.stream((s) -> s.subString(0, 2))' into '.stream(s -> s.subString(0, 2))'
Turns 'public static final someMethod();' into 'someMethod();' in interfaces
Turns `int i = 0;;` into `int i = 0;`
Migrate from 'm.size() == 0’ to ’m.isEmpty()'.
Deprecated.
Deprecated.
Turns 's.indexOf("s")’ into ’s.indexOf('s')'.
Migrate from 'm.length() == 0’ to ’m.isEmpty()'.
Turns '"a\r\n" + "b\r\n"’ into ’"""aEOLbEOL"""'
Turns 'int i = 1234567’ into ’int i = 1_234_567'