Change signatures to make use of Java 5 varargs
Issues: SWF-1532
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004-2010 the original author or authors.
|
||||
* Copyright 2004-2012 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -161,7 +161,7 @@ public class FlowApplication extends Application {
|
||||
return delegate.createConverter(targetClass);
|
||||
}
|
||||
|
||||
public MethodBinding createMethodBinding(String ref, Class<?>[] params) throws ReferenceSyntaxException {
|
||||
public MethodBinding createMethodBinding(String ref, Class<?>... params) throws ReferenceSyntaxException {
|
||||
return delegate.createMethodBinding(ref, params);
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ public class FlowActionListenerTests extends TestCase {
|
||||
return String.class;
|
||||
}
|
||||
|
||||
public Object invoke(FacesContext context, Object[] args) throws EvaluationException, MethodNotFoundException {
|
||||
public Object invoke(FacesContext context, Object... args) throws EvaluationException, MethodNotFoundException {
|
||||
return this.result;
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ public class MockApplication extends Application {
|
||||
return null;
|
||||
}
|
||||
|
||||
public MethodBinding createMethodBinding(String ref, Class<?>[] params) throws ReferenceSyntaxException {
|
||||
public MethodBinding createMethodBinding(String ref, Class<?>... params) throws ReferenceSyntaxException {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user