Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/fuseStreamOperations/afterSetsNewHashSet.java
Tagir Valeev dd689d3a39 [java-inspections] More tests for preview
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
2022-07-29 17:54:59 +00:00

15 lines
339 B
Java

// "Fuse newHashSet into the Stream API chain" "true-preview"
package com.google.common.collect;
import java.util.*;
import java.util.stream.*;
class X {
void foo(Stream<String> s) {
Set<String> set = s.collect(Collectors.toSet());
}
}
class Sets {
public static native <E> HashSet<E> newHashSet(Iterable<? extends E> var0);
}