summaryrefslogtreecommitdiffstats
path: root/wizards/com/sun/star/wizards/ui/event/MethodInvocation.java
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/ui/event/MethodInvocation.java')
-rw-r--r--wizards/com/sun/star/wizards/ui/event/MethodInvocation.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/wizards/com/sun/star/wizards/ui/event/MethodInvocation.java b/wizards/com/sun/star/wizards/ui/event/MethodInvocation.java
index adea073ef3e6..621158ec89cf 100644
--- a/wizards/com/sun/star/wizards/ui/event/MethodInvocation.java
+++ b/wizards/com/sun/star/wizards/ui/event/MethodInvocation.java
@@ -42,10 +42,6 @@ import java.lang.reflect.Method;
*/
public class MethodInvocation
{
-
- static final Class[] EMPTY_ARRAY =
- {
- };
//the method to invoke.
Method mMethod;
//the object to invoke the method on.
@@ -66,7 +62,7 @@ public class MethodInvocation
public MethodInvocation(String methodName, Object obj, Class paramClass) throws NoSuchMethodException
{
- this(paramClass == null ? obj.getClass().getMethod(methodName, null) : obj.getClass().getMethod(methodName, new Class[]
+ this(paramClass == null ? obj.getClass().getMethod(methodName, (Class[]) null) : obj.getClass().getMethod(methodName, new Class[]
{
paramClass
}), obj, paramClass);
@@ -86,12 +82,11 @@ public class MethodInvocation
{
if (mWithParam)
{
- return mMethod.invoke(mObject, (Object) param
- );
+ return mMethod.invoke(mObject, (Object) param);
}
else
{
- return mMethod.invoke(mObject, EMPTY_ARRAY);
+ return mMethod.invoke(mObject, (Object[]) null);
}
}