summaryrefslogtreecommitdiff
path: root/jurt
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 /jurt
parent016cee9ad960fce42124a600c16a3b0c073df0c2 (diff)
suppress warnings about inexact argument type
Diffstat (limited to 'jurt')
-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
2 files changed, 8 insertions, 5 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());