Files
Alexey Kudravtsev 295a9bc984 fix exception on unboxing captured wildcard of numeric type
GitOrigin-RevId: 6fb5c3ed9b1225d4224c8c543221d12412718114
2020-03-10 13:32:01 +00:00

11 lines
305 B
Java

import java.util.*;
import java.io.*;
class X {
public void save(Collection<? extends Long> value) throws IOException {
assert value.isEmpty() || value.size() == 1;
writeLONG(value.isEmpty() ? 0 : value.iterator().next());
}
public static void writeLONG(long val) throws IOException {
}
}