mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
18 lines
1.1 KiB
HTML
18 lines
1.1 KiB
HTML
<html>
|
|
<body>
|
|
Replaces a <code>Collections.emptyList()</code> or <code>Collections.singletonList()</code> call with a call to <code>Arrays.asList()</code>.
|
|
<p>When the project or module uses language level 9:</p>
|
|
<ul>
|
|
<li>The intention replaces <code>Collections.emptyList()</code> or <code>Collections.singletonList()</code>
|
|
with a call to <code>java.util.List.of()</code>.</li>
|
|
<li>Replaces a <code>Collections.emptySet()</code> or <code>Collections.singleton()</code> call with
|
|
<code>java.util.Set.of()</code>.</li>
|
|
<li>Replaces a <code>Collections.emptyMap()</code> or <code>Collections.singletonMap()</code> call with
|
|
<code>java.util.Map.of()</code>.</li>
|
|
</ul>
|
|
<p>When the project or module uses the Guava library and the language level is 9 or lower, the intention replaces a
|
|
<code>Collections.emptyList()</code> or <code>Collections.singletonList()</code> call with
|
|
<code>com.google.common.collect.ImmutableList</code>, <code>com.google.common.collect.ImmutableSet</code>, or
|
|
<code>com.google.common.collect.ImmutableMap</code> respectively.</p>
|
|
</body>
|
|
</html> |