Issue #3713 - Emit warning when invoking deprecated method in Jetty XML.
Fixed return value from varargs methods. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
fe94da9e46
commit
8dc9f745ff
|
@ -896,7 +896,7 @@ public class XmlConfiguration
|
|||
argsWithVarargs = ArrayUtil.addToArray(arg, new Object[0], Object.class);
|
||||
try
|
||||
{
|
||||
invokeMethod(method, obj, argsWithVarargs);
|
||||
return invokeMethod(method, obj, argsWithVarargs);
|
||||
}
|
||||
catch (IllegalAccessException | IllegalArgumentException e)
|
||||
{
|
||||
|
@ -974,7 +974,9 @@ public class XmlConfiguration
|
|||
continue;
|
||||
}
|
||||
else if (constructor.getParameterCount() != arguments.length)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue