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:
Simone Bordet 2019-06-03 16:07:45 +02:00
parent fe94da9e46
commit 8dc9f745ff
1 changed files with 3 additions and 1 deletions

View File

@ -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
{