make protected for Upsource

This commit is contained in:
pasynkov
2018-10-02 16:17:58 +02:00
parent 7deff53154
commit 2ba2a70ac3
@@ -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));
}