From 3b329e0cd40f46cfb0f2b7274cd5b290889a1da0 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Wed, 18 Apr 2018 18:15:06 +0200 Subject: [PATCH] better field name after review IDEA-CR-31906 --- .../openapi/vfs/newvfs/persistent/FSRecords.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecords.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecords.java index dbfcac43b539..fe3e73d03f85 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecords.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/FSRecords.java @@ -66,7 +66,7 @@ public class FSRecords { private static final boolean backgroundVfsFlush = SystemProperties.getBooleanProperty("idea.background.vfs.flush", true); private static final boolean inlineAttributes = SystemProperties.getBooleanProperty("idea.inline.vfs.attributes", true); private static final boolean bulkAttrReadSupport = SystemProperties.getBooleanProperty("idea.bulk.attr.read", false); - private static final boolean useCompressionUtilForCompression = SystemProperties.getBooleanProperty("idea.use.lightweight.compression.for.vfs", false); + private static final boolean useCompressionUtil = SystemProperties.getBooleanProperty("idea.use.lightweight.compression.for.vfs", false); private static final boolean useSmallAttrTable = SystemProperties.getBooleanProperty("idea.use.small.attr.table.for.vfs", true); static final String VFS_FILES_EXTENSION = System.getProperty("idea.vfs.files.extension", ".dat"); private static final boolean ourStoreRootsSeparately = SystemProperties.getBooleanProperty("idea.store.roots.separately", false); @@ -74,7 +74,7 @@ public class FSRecords { private static final int VERSION = 21 + (weHaveContentHashes ? 0x10:0) + (IOUtil.ourByteBuffersUseNativeByteOrder ? 0x37:0) + 31 + (bulkAttrReadSupport ? 0x27:0) + (inlineAttributes ? 0x31 : 0) + (ourStoreRootsSeparately ? 0x63 : 0) + - (useCompressionUtilForCompression ? 0x7f : 0) + (useSmallAttrTable ? 0x31 : 0) + + (useCompressionUtil ? 0x7f : 0) + (useSmallAttrTable ? 0x31 : 0) + (PersistentHashMapValueStorage.COMPRESSION_ENABLED ? 21:0); private static final int PARENT_OFFSET = 0; @@ -262,7 +262,7 @@ public class FSRecords { } }; myContents = new RefCountingStorage(contentsFile.getPath(), CapacityAllocationPolicy.FIVE_PERCENT_FOR_GROWTH, - useCompressionUtilForCompression) { + useCompressionUtil) { @NotNull @Override protected ExecutorService createExecutor() { @@ -1249,7 +1249,7 @@ public class FSRecords { @NotNull private static DataInputStream doReadContentById(int contentId) throws IOException { DataInputStream stream = getContentStorage().readStream(contentId); - if (useCompressionUtilForCompression) { + if (useCompressionUtil) { byte[] bytes = CompressionUtil.readCompressed(stream); stream = new DataInputStream(new ByteArrayInputStream(bytes)); } @@ -1521,7 +1521,7 @@ public class FSRecords { } ByteArraySequence newBytes; - if (useCompressionUtilForCompression) { + if (useCompressionUtil) { BufferExposingByteArrayOutputStream out = new BufferExposingByteArrayOutputStream(); try (DataOutputStream outputStream = new DataOutputStream(out)) { CompressionUtil.writeCompressed(outputStream, bytes.getBytes(), bytes.getOffset(), bytes.getLength());