このインスペクションは、FluentIterable、Optional、Function、Predicate、Supplier などのクラスとインターフェースが使用されていることを報告します。
例:
ImmutableList<String> results = FluentIterable.from(List.of(1, 2, 3)).transform(Object::toString).toList();
クイックフィックス適用後:
List<String> results = List.of(1, 2, 3).stream().map(Object::toString).collect(Collectors.toList());
このクイックフィックスはセマンティクスを変更する可能性があります。 遅延評価される Guava の Iterable の中には、先行評価される Iterable に変換できるものがあります。