From 02b03b10580597d3c43a09d74defded14c33c218 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Tue, 6 Sep 2022 14:51:26 -0500 Subject: [PATCH] Using variable --- .../src/main/java/org/eclipse/jetty/util/BufferUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/BufferUtil.java b/jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/BufferUtil.java index a0e743d70f5..f8313d183d3 100644 --- a/jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/BufferUtil.java +++ b/jetty-core/jetty-util/src/main/java/org/eclipse/jetty/util/BufferUtil.java @@ -1074,7 +1074,7 @@ public class BufferUtil Path path = resource.getPath(); if (path == null) return null; - return toMappedBuffer(resource.getPath()); + return toMappedBuffer(path); } public static ByteBuffer toMappedBuffer(Resource resource, long pos, long len) throws IOException @@ -1082,7 +1082,7 @@ public class BufferUtil Path path = resource.getPath(); if (path == null) return null; - return toMappedBuffer(resource.getPath(), pos, len); + return toMappedBuffer(path, pos, len); } public static String toSummaryString(ByteBuffer buffer)