Collections.emptyList()Collections.singletonList() 调用替换为对 Arrays.asList() 的调用。

当项目或模块使用语言级别 9 时:

当项目或模块使用 Guava 库且语言级别为 9 或更低时,意图将 Collections.emptyList()Collections.singletonList() 调用替换为 com.google.common.collect.ImmutableListcom.google.common.collect.ImmutableSetcom.google.common.collect.ImmutableMap