[libbluray-devel] fix array cast
hpi1
git at videolan.org
Mon Sep 8 11:42:48 CEST 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Sep 8 11:35:23 2014 +0300| [044ad2f31ede97a90bb450c23f9b54e2cbe88440] | committer: hpi1
fix array cast
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=044ad2f31ede97a90bb450c23f9b54e2cbe88440
---
src/libbluray/bdj/java/org/havi/ui/HScene.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/bdj/java/org/havi/ui/HScene.java b/src/libbluray/bdj/java/org/havi/ui/HScene.java
index 52888b6..1ef3ada 100644
--- a/src/libbluray/bdj/java/org/havi/ui/HScene.java
+++ b/src/libbluray/bdj/java/org/havi/ui/HScene.java
@@ -318,11 +318,11 @@ public class HScene extends Container implements HComponentOrdering {
}
public int[] getAllShortcutKeycodes() {
- Integer[] src = (Integer[]) shortcuts.keySet().toArray();
+ Object[] src = shortcuts.keySet().toArray();
int[] dest = new int[src.length];
for (int i = 0; i < src.length; i++)
- dest[i] = src[i].intValue();
+ dest[i] = ((Integer)src[i]).intValue();
return dest;
}
More information about the libbluray-devel
mailing list