Forums Register Login

Generics

+Pie Number of slices to send: Send
When I try to run generics + legacy code, I get this warning:
Recompile with -Xlint:unchecked for details.

How do i recompile it??
+Pie Number of slices to send: Send
The same way as you compiled it the first time but add -Xlint:unchecked as an extra option.
+Pie Number of slices to send: Send
The warning doesn't mean you need to recompile it. It's just a hint that if you recompile with these options, you see why this warning is being shown. Since you're using legacy code it's probably something with raw types.
rubbery bacon. rubbery tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 730 times.
Similar Threads
Class and generics
generics
Problem with Generics
Generics Questions
having trouble understanding generics
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:37:44.