Change signatures to make use of Java 5 varargs

Issues: SWF-1532
This commit is contained in:
Phillip Webb
2012-04-05 16:23:38 -07:00
parent 53384adca9
commit 54a300e009
23 changed files with 39 additions and 39 deletions

View File

@@ -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);
}

View File

@@ -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;
}

View File

@@ -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;
}