Using variable
This commit is contained in:
parent
9a553e1787
commit
02b03b1058
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue