Why declare "private List contactInfos" without a generic ("private List <ContactInfo> contactInfos"
Posted
by g_imp
on Stack Overflow
See other posts from Stack Overflow
or by g_imp
Published on 2010-03-31T22:14:48Z
Indexed on
2010/03/31
23:03 UTC
Read the original article
Hit count: 524
In this example from the App Engine docs, why does the example declare contactInfos
like this (no Generics):
import javax.jdo.annotations.Element;
// ...
@Persistent
@Element(dependent = "true")
private List contactInfos;
instead of like this, using a Generic:
import javax.jdo.annotations.Element;
// ...
@Persistent
@Element(dependent = "true")
private List <ContactInfo> contactInfos;
© Stack Overflow or respective owner