표준 Java API 호출로 마이그레이션할 수 있는 Guava의 함수 기본 타입의 사용을 보고합니다.

예를 들어, 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이 즉시 평가되도록 변환될 수 있습니다.