mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 06:51:17 +07:00
IDEA-112050 vcs: fix ByteBuffer to array conversion
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user