• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generics

 
Abhi vijay
Ranch Hand
Posts: 509
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to run generics + legacy code, I get this warning:
Recompile with -Xlint:unchecked for details.

How do i recompile it??
 
Joanne Neal
Rancher
Pie
Posts: 3742
16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same way as you compiled it the first time but add -Xlint:unchecked as an extra option.
 
Rob Spoor
Sheriff
Pie
Posts: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic