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);
|
argsWithVarargs = ArrayUtil.addToArray(arg, new Object[0], Object.class);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
invokeMethod(method, obj, argsWithVarargs);
|
return invokeMethod(method, obj, argsWithVarargs);
|
||||||
}
|
}
|
||||||
catch (IllegalAccessException | IllegalArgumentException e)
|
catch (IllegalAccessException | IllegalArgumentException e)
|
||||||
{
|
{
|
||||||
|
@ -974,7 +974,9 @@ public class XmlConfiguration
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (constructor.getParameterCount() != arguments.length)
|
else if (constructor.getParameterCount() != arguments.length)
|
||||||
|
{
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue