Forums Register Login

Warnings in Generics

+Pie Number of slices to send: Send
Hi All

Does assigning generic types to a raw type generate unchecked warnings or is it the other way round?

I am really confused about this as Whizlabs has mentioned the above statement while the document on Generics by Gilad Bracha states that assigning a raw type to a generic type generates unchecked warnings.

Appreciate a clarification on this.

Thanks in advance.
+Pie Number of slices to send: Send
Why not write some code to verify whether warning messages are or are not generated?
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 499 times.
Similar Threads
Generics
Warnings after compiling program using Generics
Generics
having trouble understanding generics
Generics doubt
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:51:13.