mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better field name after review IDEA-CR-31906
This commit is contained in:
+5
-5
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user