[Kde-java] branches/KDE/3.5/kdebindings/qtjava

Richard Dale Richard_Dale at tipitina.demon.co.uk
Tue Oct 24 20:01:09 CEST 2006


SVN commit 598814 by rdale:

* Fixed compiler warning in Invocation.java reported by Rafael Lopez

CCMAIL: kde-java at kde.org



 M  +4 -0      ChangeLog  
 M  +6 -6      javalib/org/kde/qt/Invocation.java  


--- branches/KDE/3.5/kdebindings/qtjava/ChangeLog #598813:598814
@@ -1,3 +1,7 @@
+2006-10-24  Richard Dale  <rdale at foton.es>
+
+	* Fixed compiler warning in Invocation.java reported by Rafael Lopez
+
 2006-02-14  Richard Dale  <Richard_Dale at tipitina.demon.co.uk>
 
 	* Added QStyleOption.h and QStyleOption.cpp sources which were
--- branches/KDE/3.5/kdebindings/qtjava/javalib/org/kde/qt/Invocation.java #598813:598814
@@ -366,10 +366,10 @@
 		Object onThis = qtjava.objectForQtKey(target, className, false);
 
 		try {
-			method = onThis.getClass().getMethod(methodName, null);
+			method = onThis.getClass().getMethod(methodName, (Class[]) null);
 		} catch (NoSuchMethodException e1) {
 			try {
-				method = onThis.getClass().getDeclaredMethod(methodName, null);
+				method = onThis.getClass().getDeclaredMethod(methodName, (Class[]) null);
 			} catch (NoSuchMethodException e2) {
 				return false;
 			}
@@ -382,7 +382,7 @@
 
 		try {
 			method.setAccessible(true);
-			Object result = method.invoke(onThis, null);
+			Object result = method.invoke(onThis, (Class[]) null);
 			return true;
 		} catch (InvocationTargetException e) {
 			Qt.qWarning("Invocation failed : " + onThis.getClass().getName() + "." + methodName + "()");
@@ -403,10 +403,10 @@
 		Object onThis = qtjava.objectForQtKey(target, "QObject", false);
 
 		try {
-			method = onThis.getClass().getMethod(methodName, null);
+			method = onThis.getClass().getMethod(methodName, (Class[]) null);
 		} catch (NoSuchMethodException e1) {
 			try {
-				method = onThis.getClass().getDeclaredMethod(methodName, null);
+				method = onThis.getClass().getDeclaredMethod(methodName, (Class[]) null);
 			} catch (NoSuchMethodException e2) {
 				return true;
 			}
@@ -419,7 +419,7 @@
 
 		try {
 			method.setAccessible(true);
-			Object result = method.invoke(onThis, null);
+			Object result = method.invoke(onThis, (Class[]) null);
 			return ((Boolean) result).booleanValue();
 		} catch (InvocationTargetException e) {
 			Qt.qWarning("Invocation failed : " + onThis.getClass().getName() + "." + methodName + "()");


More information about the Kde-java mailing list