JG
07/17/2024, 3:55 PMsomeList is List<*>
and someList is List
equivalent? and what if it is not List but a random generic class?Youssef Shoaib [MOD]
07/17/2024, 4:04 PMsomeList
is an Iterable
. That's because if someList
is Iterable<T>
, then checking is List
clearly means is List<T>
and the generic is not "unchecked" because it was pre-knownJG
07/17/2024, 4:13 PMJG
07/17/2024, 4:15 PMJG
07/17/2024, 4:16 PMJG
07/17/2024, 4:17 PM<*>