christophsturm
07/19/2018, 12:52 PMas?
Czar
07/19/2018, 12:55 PMis
check before, or it is a non-local var
you're castingchristophsturm
07/19/2018, 1:23 PMarekolek
07/19/2018, 1:45 PMchristophsturm
07/19/2018, 1:46 PMchristophsturm
07/19/2018, 1:46 PMShawn
07/19/2018, 4:03 PMUnchecked cast
doesn’t refer to whether or not you’ll get a cast is safe (i.e. if you get a ClassCastException
); instead, it refers to when you’re casting to a generic, in which case the compiler doesn’t have any easy way to check what the generic type really is (thanks, type erasure)Shawn
07/19/2018, 4:04 PM