From: Artur Signell Date: Tue, 2 Mar 2010 13:55:37 +0000 (+0000) Subject: #4106 - BeanItemContainer slow in some instances X-Git-Tag: 6.7.0.beta1~2001 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=503da3311c73ee52a7af049517dbb59f43169998;p=vaadin-framework.git #4106 - BeanItemContainer slow in some instances svn changeset:11592/svn branch:6.3 --- diff --git a/src/com/vaadin/data/util/BeanItemContainer.java b/src/com/vaadin/data/util/BeanItemContainer.java index 0efbdd3416..6510229d5a 100644 --- a/src/com/vaadin/data/util/BeanItemContainer.java +++ b/src/com/vaadin/data/util/BeanItemContainer.java @@ -182,11 +182,11 @@ public class BeanItemContainer implements Indexed, Sortable, Filterable, return beanItem; } - /** * Adds the bean to all internal data structures at the given position. * Fails if the bean is already in the container or is not assignable to the - * correct type. Returns the new BeanItem if the bean was added successfully. + * correct type. Returns the new BeanItem if the bean was added + * successfully. * *

* Caller should call {@link #filterAll()} after calling this method to @@ -225,6 +225,7 @@ public class BeanItemContainer implements Indexed, Sortable, Filterable, return beanItem; } + @SuppressWarnings("unchecked") public BT getIdByIndex(int index) { return filteredItems.get(index);