diff --git a/app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java b/app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java index bcdf36f2f940..d0d9761ef020 100644 --- a/app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java +++ b/app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java @@ -2337,6 +2337,7 @@ public String getEncryptedRemotePath(String decryptedRemotePath) { return null; } + @SuppressFBWarnings("OCP") private List> getDecryptedFileNamesAndEncryptedRemotePaths(List fileList) { List> result = new ArrayList<>(); diff --git a/app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java b/app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java index b428efc8feb7..33b31c44dfeb 100644 --- a/app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java +++ b/app/src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java @@ -58,6 +58,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.localbroadcastmanager.content.LocalBroadcastManager; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import static com.owncloud.android.datamodel.OCFile.PATH_SEPARATOR; @@ -601,6 +602,7 @@ public static Object getDecryptedFolderMetadata(boolean encryptedAncestor, return metadata; } + @SuppressFBWarnings("CE") private static void setMimeTypeAndDecryptedRemotePath(OCFile updatedFile, FileDataStorageManager storageManager, String decryptedFileName, String mimetype) { OCFile parentFile = storageManager.getFileById(updatedFile.getParentId());