409953 return buffer.slice() instead of buffer.asReadOnlyBuffer() in ResourceCache to avoid using inefficent path in BufferUtil.writeTo

This commit is contained in:
Thomas Becker 2013-06-06 14:09:27 +02:00
parent d3b96328f9
commit 82b73c065f
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ public class ResourceCache
}
if (buffer==null)
return null;
return buffer.asReadOnlyBuffer();
return buffer.slice();
}