Inspectopedia Help

Java 21

Explicit class declaration can be converted into implicitly declared class   New in this release

Reports ordinary classes, which can be converted into implicitly declared classes Example: public class Sample { public static void main(String[] args) { System.out.println("Hello, world!"); } } After the quick-fix is applied: public static void main(String[] args) { System.out.println("Hello, world!"); }.

Implicitly declared class can be replaced with ordinary class   New in this release

Reports implicitly declared classes and suggests replacing them with regular classes.

Record pattern can be used   New in this release

Reports patterns that can be replaced with record patterns.

SequencedCollection method can be used   New in this release

Reports collection API method calls that can be simplified using SequencedCollection methods.

String template can be concatenated string   New in this release

Reports string template expressions using the STR processor and offers a quick-fix to migrate back to a plain string concatenation.

String template can be used   New in this release

Reports String concatenations that can be simplified by replacing them with a string template.

Last modified: 11 September 2024