diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/CustomRequestLog.java b/jetty-server/src/main/java/org/eclipse/jetty/server/CustomRequestLog.java index a7735b39462..59a9ca9453b 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/CustomRequestLog.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/CustomRequestLog.java @@ -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 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 modifiers, boolean negated) throws NoSuchMethodException, IllegalAccessException { MethodType logType = methodType(void.class, StringBuilder.class, Request.class, Response.class);