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.
- 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 4 inspections that provide checks for Java 21
- Java 23
Sub-group of 1 inspection that provides checks for Java 23
- Java 25
Sub-group of 4 inspections that provide checks for Java 25
- 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