- final Collection<Object> list = new ArrayList <> ();
- for (final Iterator<Map.Entry<Object, Object>> i = bt.entrySet ().iterator (); i.hasNext ();) {
- final Entry<Object, Object> e = i.next ();
- final Object key = e.getKey ();
- list.add (key);
- i.remove ();
+ final Collection<Object> list = new ArrayList<>(COUNT);
+ final Iterator<Entry<Object, Object>> it = bt.entrySet().iterator();
+ while (it.hasNext()) {
+ list.add(it.next().getKey());
+ it.remove();