[Libreoffice-commits] .: jurt/com ridljar/com

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Tue Nov 8 10:19:43 PST 2011


 jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java |    9 ++++++---
 jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java            |    4 ++--
 ridljar/com/sun/star/uno/UnoRuntime.java                        |    7 ++++---
 3 files changed, 12 insertions(+), 8 deletions(-)

New commits:
commit cb9dad87e7ee82d7ad1f93e1ab46e2f1ef509ce8
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Tue Nov 8 21:52:32 2011 +0400

    suppress warnings about inexact argument type

diff --git a/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java b/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java
index c29be0c..d0ae6c3 100644
--- a/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java
+++ b/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java
@@ -175,13 +175,16 @@ final class ProxyFactory {
         try {
             METHOD_EQUALS = Object.class.getMethod(
                 "equals", new Class[] { Object.class });
-            METHOD_HASH_CODE = Object.class.getMethod("hashCode", null);
-            METHOD_TO_STRING = Object.class.getMethod("toString", null);
+            METHOD_HASH_CODE = Object.class.getMethod(
+                "hashCode", (Class[]) null);
+            METHOD_TO_STRING = Object.class.getMethod(
+                "toString", (Class[]) null);
             METHOD_QUERY_INTERFACE = IQueryInterface.class.getMethod(
                 "queryInterface", new Class[] { Type.class });
             METHOD_IS_SAME = IQueryInterface.class.getMethod(
                 "isSame", new Class[] { Object.class });
-            METHOD_GET_OID = IQueryInterface.class.getMethod("getOid", null);
+            METHOD_GET_OID = IQueryInterface.class.getMethod(
+                "getOid", (Class[]) null);
         } catch (NoSuchMethodException e) {
             throw new ExceptionInInitializerError(e);
         }
diff --git a/jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java b/jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java
index 2a43041..38cafed 100644
--- a/jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java
+++ b/jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java
@@ -318,8 +318,8 @@ final class Marshal {
         if (value == null) {
             try {
                 n = ((Enum)
-                     (type.getZClass().getMethod("getDefault", null).
-                      invoke(null, null))).
+                     (type.getZClass().getMethod("getDefault", (Class[]) null).
+                      invoke(null, (Object[]) null))).
                     getValue();
             } catch (IllegalAccessException e) {
                 throw new RuntimeException(e.toString());
diff --git a/ridljar/com/sun/star/uno/UnoRuntime.java b/ridljar/com/sun/star/uno/UnoRuntime.java
index 188ea54..a23740c 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) {


More information about the Libreoffice-commits mailing list