From 503da3311c73ee52a7af049517dbb59f43169998 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 2 Mar 2010 13:55:37 +0000 Subject: [PATCH] #4106 - BeanItemContainer slow in some instances svn changeset:11592/svn branch:6.3 --- src/com/vaadin/data/util/BeanItemContainer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.5