IDEA-112050 vcs: fix ByteBuffer to array conversion

This commit is contained in:
Aleksey Pivovarov
2014-04-22 13:27:02 +04:00
parent 97a6a21c7c
commit 2e517c5603
@@ -84,8 +84,7 @@ public class ContentRevisionVirtualFile extends AbstractVcsVirtualFile {
myModificationStamp++;
setRevision(myContentRevision.getRevisionNumber().asString());
final ByteBuffer byteBuffer = getCharset().encode(content);
myContent = byteBuffer.compact().array();
myContent = content.getBytes(getCharset());
ApplicationManager.getApplication().runWriteAction(new Runnable() {
public void run() {
vcsFileSystem.fireContentsChanged(this, ContentRevisionVirtualFile.this, 0);