diff options
-rw-r--r-- | javaunohelper/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer.java b/javaunohelper/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer.java index a255721046e5..803c02e8340c 100644 --- a/javaunohelper/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer.java +++ b/javaunohelper/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer.java @@ -41,15 +41,14 @@ public class MultiTypeInterfaceContainer if ( (size=map.size()) > 0) { Type [] arTypes= new Type[size]; - Iterator<Object> it= map.keySet().iterator(); int countTypes= 0; - while (it.hasNext()) + for (Map.Entry<Object,InterfaceContainer> entry : map.entrySet()) { - Object key= it.next(); - InterfaceContainer cont= map.get(key); + InterfaceContainer cont= entry.getValue(); if (cont != null && cont.size() > 0) { + Object key = entry.getKey(); if (key == null) arTypes[countTypes++]= new Type(); else if (key instanceof Type) |