diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-11-08 21:52:32 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-11-08 22:19:22 +0400 |
commit | cb9dad87e7ee82d7ad1f93e1ab46e2f1ef509ce8 (patch) | |
tree | 28f51ebabc8476076fa8960a5cc83689c121351a /ridljar | |
parent | 016cee9ad960fce42124a600c16a3b0c073df0c2 (diff) |
suppress warnings about inexact argument type
Diffstat (limited to 'ridljar')
-rw-r--r-- | ridljar/com/sun/star/uno/UnoRuntime.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ridljar/com/sun/star/uno/UnoRuntime.java b/ridljar/com/sun/star/uno/UnoRuntime.java index 188ea54a74a6..a23740ce3248 100644 --- a/ridljar/com/sun/star/uno/UnoRuntime.java +++ b/ridljar/com/sun/star/uno/UnoRuntime.java @@ -342,7 +342,8 @@ public class UnoRuntime { return Array.newInstance(type.getZClass().getComponentType(), 0); case TypeClass.STRUCT_value: try { - return type.getZClass().getConstructor(null).newInstance(null); + return type.getZClass().getConstructor((Class[]) null). + newInstance((Object[]) null); } catch (java.lang.RuntimeException e) { throw e; } catch (java.lang.Exception e) { @@ -350,8 +351,8 @@ public class UnoRuntime { } case TypeClass.ENUM_value: try { - return type.getZClass().getMethod("getDefault", null).invoke( - null, null); + return type.getZClass().getMethod("getDefault", (Class[]) null). + invoke(null, (Object[]) null); } catch (java.lang.RuntimeException e) { throw e; } catch (java.lang.Exception e) { |