From cb9dad87e7ee82d7ad1f93e1ab46e2f1ef509ce8 Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Tue, 8 Nov 2011 21:52:32 +0400 Subject: suppress warnings about inexact argument type --- jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java | 9 ++++++--- jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'jurt/com') 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 c29be0c9558d..d0ae6c3031bb 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 2a43041916ce..38cafed0012a 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()); -- cgit