diff options
-rw-r--r-- | jurt/com/sun/star/lib/uno/environments/java/java_environment.java | 3 | ||||
-rw-r--r-- | ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/jurt/com/sun/star/lib/uno/environments/java/java_environment.java b/jurt/com/sun/star/lib/uno/environments/java/java_environment.java index 1fdfdf9e3d9b..522ca8c2408b 100644 --- a/jurt/com/sun/star/lib/uno/environments/java/java_environment.java +++ b/jurt/com/sun/star/lib/uno/environments/java/java_environment.java @@ -206,7 +206,8 @@ public final class java_environment implements IEnvironment { // must only be called while synchronized on this Registry: private void cleanUp() { for (;;) { - Level2Entry l2 = (Level2Entry) queue.poll(); + Object tmp = queue.poll(); + Level2Entry l2 = (Level2Entry) tmp; if (l2 == null) { break; } diff --git a/ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java b/ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java index f532133299d2..7f1efcfbcf8c 100644 --- a/ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java +++ b/ridljar/com/sun/star/lib/uno/typedesc/TypeDescription.java @@ -676,7 +676,8 @@ public final class TypeDescription implements ITypeDescription { private void cleanUp() { for (;;) { - Entry e = (Entry) queue.poll(); + Object tmp = queue.poll(); + Entry e = (Entry)tmp; if (e == null) { break; } |