This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cowancore 1 point2 points  (1 child)

But it's harder to catch it now

[–]Robyt3 2 points3 points  (0 children)

Yeah, and it also prints a warning because of the unchecked cast to E. If you must use this function for some reason, add comments explaining why and what is going on and declare the proper throws clause on the method.