• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generic and Raw type  RSS feed

 
meeta gaur
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Note: OldContainerTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

i don't understand why i am getting warning here i am not assigning raw type to generic type anywhere



i dont get any warning here although class declares generic then why i got in first code ?
 
meeta gaur
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it ! invoking generic methods on raw type object.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!