Fix "warning: non-varargs call of varargs method with inexact argument type for last...
authorhpi1 <hpi1@anonymous.org>
Sat, 16 Dec 2017 12:05:18 +0000 (14:05 +0200)
committerhpi1 <hpi1@anonymous.org>
Sat, 16 Dec 2017 12:05:18 +0000 (14:05 +0200)
src/libbluray/bdj/java/org/blurayx/s3d/ti/StereoscopicCodingType.java
src/libbluray/bdj/java/org/blurayx/uhd/ti/UHDCodingType.java

index adabd1d..16a24de 100644 (file)
@@ -34,7 +34,7 @@ public class StereoscopicCodingType {
                         Class classCodingType = Class.forName("org.bluray.ti.CodingType");
                         Constructor constructor = classCodingType.getDeclaredConstructor(new Class[] { String.class });
                         constructor.setAccessible(true);
-                        type = (CodingType)constructor.newInstance(new String[] { "MPEG4_MVC_VIDEO" });
+                        type = (CodingType)constructor.newInstance((Object [])new String[] { "MPEG4_MVC_VIDEO" });
                     }
                     catch (Exception e) {
                         System.err.println("StereoscopicCodingType.MPEG4_MVC_VIDEO initialization failed");
index 6b75578..2f82cfc 100644 (file)
@@ -35,7 +35,7 @@ public class UHDCodingType {
                         Class classCodingType = Class.forName("org.bluray.ti.CodingType");
                         Constructor constructor = classCodingType.getDeclaredConstructor(new Class[] { String.class });
                         constructor.setAccessible(true);
-                        type = (CodingType)constructor.newInstance(new String[] { "HEVC_VIDEO" });
+                        type = (CodingType)constructor.newInstance((Object [])new String[] { "HEVC_VIDEO" });
                     }
                     catch (Exception e) {
                         System.err.println("UHDCodingType.HEVC_VIDEO initialization failed");