captured wildcard: convert to primitive (IDEA-151408)

This commit is contained in:
Anna Kozlova
2016-02-09 11:57:22 +01:00
parent 5793ec77ed
commit e3f5740e07
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import java.util.concurrent.atomic.AtomicReference;
class Test {
private void test(AtomicReference<? extends Boolean> atomic) {
boolean val = !atomic.get();
boolean val1 = atomic.get() && atomic.get();
assert atomic.get();
}
}