mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make protected for Upsource
This commit is contained in:
+2
-2
@@ -649,7 +649,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent
|
||||
private volatile FileAttribute autoDetectedAttribute;
|
||||
// read auto-detection flags from the persistent FS file attributes. If file attributes are absent, return 0 for flags
|
||||
// returns three bits value for AUTO_DETECTED_AS_TEXT_MASK, AUTO_DETECTED_AS_BINARY_MASK and AUTO_DETECT_WAS_RUN_MASK bits
|
||||
private byte readFlagsFromCache(@NotNull VirtualFile file) {
|
||||
protected byte readFlagsFromCache(@NotNull VirtualFile file) {
|
||||
boolean wasAutoDetectRun = false;
|
||||
byte status = 0;
|
||||
try (DataInputStream stream = autoDetectedAttribute.readAttribute(file)) {
|
||||
@@ -666,7 +666,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent
|
||||
|
||||
// store auto-detection flags to the persistent FS file attributes
|
||||
// writes AUTO_DETECTED_AS_TEXT_MASK, AUTO_DETECTED_AS_BINARY_MASK bits only
|
||||
private void writeFlagsToCache(@NotNull VirtualFile file, int flags) {
|
||||
protected void writeFlagsToCache(@NotNull VirtualFile file, int flags) {
|
||||
try (DataOutputStream stream = autoDetectedAttribute.writeAttribute(file)) {
|
||||
stream.writeByte(flags & (AUTO_DETECTED_AS_TEXT_MASK | AUTO_DETECTED_AS_BINARY_MASK));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user