Revision 6a066197
Added by Andreas Kohlbecker almost 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/common/FilterableAnnotationsField.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
private static final long serialVersionUID = -8258550787601028813L; |
49 | 49 |
|
50 |
Class<List<Annotation>> type = (Class<List<Annotation>>)new ArrayList<Annotation>().getClass(); |
|
51 |
|
|
52 | 50 |
private CssLayout root = new CssLayout(); |
53 | 51 |
|
54 | 52 |
private Table table = new Table(); |
... | ... | |
210 | 208 |
* {@inheritDoc} |
211 | 209 |
*/ |
212 | 210 |
@Override |
213 |
public Class<List<Annotation>> getType() { |
|
214 |
return type;
|
|
211 |
public Class<? extends List<Annotation>> getType() {
|
|
212 |
return (Class<? extends List<Annotation>>) new ArrayList<Annotation>().getClass();
|
|
215 | 213 |
} |
216 | 214 |
|
217 | 215 |
/** |
Also available in: Unified diff
ref #7458 solving generic type parameter problem in FilterableAnnotationsField