reorder some CustomRequestLog methods to be same as jetty-10

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-08-21 10:29:22 +10:00
parent b19de0aec3
commit 70a679f5f4
1 changed files with 5 additions and 5 deletions

View File

@ -557,11 +557,6 @@ public class CustomRequestLog extends ContainerLifeCycle implements RequestLog
}
}
private MethodHandle updateLogHandle(MethodHandle logHandle, MethodHandle append, String literal)
{
return foldArguments(logHandle, dropArguments(dropArguments(append.bindTo(literal), 1, Request.class), 2, Response.class));
}
@SuppressWarnings("unused")
private static boolean modify(List<Integer> modifiers, Boolean negated, StringBuilder b, Request request, Response response)
{
@ -571,6 +566,11 @@ public class CustomRequestLog extends ContainerLifeCycle implements RequestLog
return modifiers.contains(response.getStatus());
}
private MethodHandle updateLogHandle(MethodHandle logHandle, MethodHandle append, String literal)
{
return foldArguments(logHandle, dropArguments(dropArguments(append.bindTo(literal), 1, Request.class), 2, Response.class));
}
private MethodHandle updateLogHandle(MethodHandle logHandle, MethodHandle append, MethodHandles.Lookup lookup, String code, String arg, List<Integer> modifiers, boolean negated) throws NoSuchMethodException, IllegalAccessException
{
MethodType logType = methodType(void.class, StringBuilder.class, Request.class, Response.class);