blob: 6f27f4ee3eefbab737a25b6be26f8e3420286c1a [file] [log] [blame]
import java.util.Arrays;
import java.util.HashSet;
public class InferTypeArgs3 {
@SuppressWarnings({"deprecation", "cast.unsafe.constructor.invocation"})
void test() {
java.util.Arrays.asList(new Integer(1), "");
}
void foo() {
new HashSet<>(Arrays.asList(new Object()));
new HashSet<Object>(Arrays.asList(new Object())) {};
}
}