summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-11-08 21:52:32 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-11-08 22:19:22 +0400
commitcb9dad87e7ee82d7ad1f93e1ab46e2f1ef509ce8 (patch)
tree28f51ebabc8476076fa8960a5cc83689c121351a
parent016cee9ad960fce42124a600c16a3b0c073df0c2 (diff)
suppress warnings about inexact argument type
-rw-r--r--jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java9
-rw-r--r--jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java4
-rw-r--r--ridljar/com/sun/star/uno/UnoRuntime.java7
3 files changed, 12 insertions, 8 deletions
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());
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) {