mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 09:04:15 +07:00
GitOrigin-RevId: 7b3919db8b74de179e5fd33e02fa29071f5d3fe6
13 lines
251 B
Java
13 lines
251 B
Java
// "Replace 'ts' with existing pattern variable 'i1'" "true"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
interface T {}
|
|
|
|
HashSet<T> test(Iterable<T> i) {
|
|
if (i instanceof Collection<T> i1) {
|
|
return new HashSet<>(i1);
|
|
}
|
|
return null;
|
|
}
|
|
} |