• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

non-generic collection always compiles with warning ?

 
vikram choudhary .
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
non-generic collection always compiles with warning ?
is it correct?
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



It depends on how you use the non-generic collection.
[ April 30, 2007: Message edited by: Barry Gaunt ]
 
Param Yalamanchili
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This code wont generate any warnings

public class Wonder
{
public static void main(String[] args)
{
List l = new ArrayList(); // no warning
List<String> ls = new ArrayList<String>(); //NO warning
}
}
[ April 30, 2007: Message edited by: Param Yalamanchili ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic