Java language level migration aids
- 'compare()' method can be used to compare numbers
Reports expressions that can be replaced by a call to the Integer.compare() method or a similar method from the Long, Short, Byte, Double or Float classes, instead of more verbose or less efficient constructs.
- 'if' can be replaced with 'switch'
Reports if statements that can be replaced with switch statements.
- Enhanced 'for' with a record pattern can be used
Reports local variable declarations and accessors to record components that can be replaced with pattern variables in enhanced `for` statements, which are usually more compact.
- Enumeration can be iteration
Reports calls to Enumeration methods that are used on collections and may be replaced with equivalent Iterator constructs.
- Java 10
Sub-group of 2 inspections that provide checks for Java 10
- Java 11
Sub-group of 2 inspections that provide checks for Java 11
- Java 14
Sub-group of 2 inspections that provide checks for Java 14
- Java 15
Sub-group of 2 inspections that provide checks for Java 15
- Java 16
Sub-group of 2 inspections that provide checks for Java 16
- Java 21
Sub-group of 6 inspections that provide checks for Java 21
- Java 23
Sub-group of 1 inspection that provides checks for Java 23
- Java 5
Sub-group of 10 inspections that provide checks for Java 5
- Java 7
Sub-group of 5 inspections that provide checks for Java 7
- Java 8
Sub-group of 18 inspections that provide checks for Java 8
- Java 9
Sub-group of 3 inspections that provide checks for Java 9