diff --git a/src/main/java/org/jabref/logic/exporter/AtomicFileOutputStream.java b/src/main/java/org/jabref/logic/exporter/AtomicFileOutputStream.java index 11b60b6c380..c1589735c23 100644 --- a/src/main/java/org/jabref/logic/exporter/AtomicFileOutputStream.java +++ b/src/main/java/org/jabref/logic/exporter/AtomicFileOutputStream.java @@ -183,7 +183,7 @@ public void close() throws IOException { PosixFilePermission.OTHERS_READ); if (Files.exists(targetFile)) { Files.copy(targetFile, backupFile, StandardCopyOption.REPLACE_EXISTING); - if (FileUtil.IS_POSIX_COMPILANT) { + if (FileUtil.IS_POSIX_COMPLIANT) { try { oldFilePermissions = Files.getPosixFilePermissions(targetFile); } catch (IOException exception) { @@ -196,7 +196,7 @@ public void close() throws IOException { Files.move(temporaryFile, targetFile, StandardCopyOption.ATOMIC_MOVE, StandardCopyOption.REPLACE_EXISTING); // Restore file permissions - if (FileUtil.IS_POSIX_COMPILANT) { + if (FileUtil.IS_POSIX_COMPLIANT) { try { Files.setPosixFilePermissions(targetFile, oldFilePermissions); } catch (IOException exception) { diff --git a/src/main/java/org/jabref/logic/util/io/FileUtil.java b/src/main/java/org/jabref/logic/util/io/FileUtil.java index 67eade80f29..ae6be08ba15 100644 --- a/src/main/java/org/jabref/logic/util/io/FileUtil.java +++ b/src/main/java/org/jabref/logic/util/io/FileUtil.java @@ -33,7 +33,7 @@ public class FileUtil { - public static final boolean IS_POSIX_COMPILANT = FileSystems.getDefault().supportedFileAttributeViews().contains("posix"); + public static final boolean IS_POSIX_COMPLIANT = FileSystems.getDefault().supportedFileAttributeViews().contains("posix"); public static final int MAXIMUM_FILE_NAME_LENGTH = 255; private static final Logger LOGGER = LoggerFactory.getLogger(FileUtil.class);