All Classes and Interfaces
Class
Description
Enables common behavior to JavaParser-based rules
Will turn '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) { ...
Turns 'd == Double.NaN' into 'Double.isNaN(d)'
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)
Order modifiers according the the Java specification.
Scans dynamically for available rules
Make easier processing on code-tree
Turns '!o.isEmpty()' into 'o.isPresent()'
Clean the way of converting primitives into
String
.Prefer 's.anyMatch(predicate)' over 's.filter(p).findAny().isPresent()'
Turns '"someString".toString()' into '"someString"'
Prefer 'o.isPresent()' over 'o.isEmpty() == 0'
Deprecated.
Deprecated.
Migrate from 's.indexOf("s")’ to ’s.indexOf('s')'.
Migrate from 'm.size() == 0’ to ’m.isEmpty()'.
A
Comparable
for versions