mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 12:51:04 +07:00
least upper bound: pull unbounded wildcard up so types Number & Comparable<? extends Number & Comparable<?>> are produced instead of Number & Comparable<? extends Comparable<?>>
inferred type in bounds check cleanup: accept that inference result is not within its bounds and give the inference the second chance
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import java.io.Serializable;
|
||||
|
||||
// "Change type arguments to <Serializable & Comparable<? extends Serializable & Comparable<? extends Comparable<?>>>>" "true"
|
||||
// "Change type arguments to <Serializable & Comparable<? extends Serializable & Comparable<?>>>" "true"
|
||||
class Generic<E> {
|
||||
Generic(E arg, E arg1) {
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Change type arguments to <Serializable & Comparable<? extends Serializable & Comparable<? extends Comparable<?>>>>" "true"
|
||||
// "Change type arguments to <Serializable & Comparable<? extends Serializable & Comparable<?>>>" "true"
|
||||
class Generic<E> {
|
||||
Generic(E arg, E arg1) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user