Skip to content

Commit

Permalink
Fixes spelling of compliant (JabRef#8844)
Browse files Browse the repository at this point in the history
  • Loading branch information
btut authored May 23, 2022
1 parent 2d680ab commit 117bb1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/logic/util/io/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 117bb1c

Please sign in to comment.