Javac quirks
Reports known Javac issues, performance problems, and incompatibilities. For example, type inference may be slow when it has to process many nested calls.
The following code triggers a warning, as the vararg method call has 50+ poly arguments:
Arrays.asList(
Arrays.asList("a1", "b1"),
Arrays.asList("a2", "b2"),
...
Arrays.asList("a100", "b100"));
The quick-fix adds explicit type arguments, which makes compilation and IDE processing much faster:
//noinspection RedundantTypeArguments
Arrays.<List<String>>asList(
Arrays.asList("a1", "b1"),
Arrays.asList("a2", "b2"),
...
Arrays.asList("a100", "b100"));
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023