mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix exception on unboxing captured wildcard of numeric type
GitOrigin-RevId: 6fb5c3ed9b1225d4224c8c543221d12412718114
This commit is contained in:
committed by
intellij-monorepo-bot
parent
29e3a57092
commit
295a9bc984
+11
@@ -0,0 +1,11 @@
|
||||
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 {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user