mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
27 lines
646 B
Java
27 lines
646 B
Java
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
public class Bug {
|
|
private static <TFrom, TTo> List<TTo> mapAsList(TFrom source, Class<TTo> toType) {
|
|
return Collections.singletonList((TTo) source);
|
|
}
|
|
|
|
private static <TFrom, TTo> List<TTo> mapAsList(TFrom source, Class<TTo> toType, boolean someOption) {
|
|
return Collections.singletonList((TTo) source);
|
|
}
|
|
|
|
private static class Foo {
|
|
public Foo(Long value, List<Long> values, List<Long> moreValues) {
|
|
}
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
new Foo(
|
|
1L,
|
|
mapAsList(2L, Long.class),
|
|
mapAsList(3L, Lo<caret>ng.class, true)
|
|
);
|
|
}
|
|
}
|