Skip to content

Commit

Permalink
OAK-11420: Remove usage of Guava Files.move() - changes undone
Browse files Browse the repository at this point in the history
  • Loading branch information
reschke committed Jan 27, 2025
1 parent 20c0a5a commit 7efcf23
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 @@ -449,7 +449,7 @@ public void reconcile(File recs) throws IOException {
}
}

Files.move(removed.toPath(), delFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
org.apache.jackrabbit.guava.common.io.Files.move(removed, delFile);
LOG.trace("removed active delete records");
} finally {
lock.unlock();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private FileIOUtils() {
public static void sort(File file) throws IOException {
File sorted = createTempFile("fleioutilssort", null);
merge(sortInBatch(file, lexComparator, true), sorted);
Files.move(sorted.toPath(), file.toPath(), StandardCopyOption.REPLACE_EXISTING);
org.apache.jackrabbit.guava.common.io.Files.move(sorted, file);
}

/**
Expand All @@ -87,7 +87,7 @@ public static void sort(File file) throws IOException {
public static void sort(File file, Comparator<String> comparator) throws IOException {
File sorted = createTempFile("fleioutilssort", null);
merge(sortInBatch(file, comparator, true), sorted, comparator);
Files.move(sorted.toPath(), file.toPath(), StandardCopyOption.REPLACE_EXISTING);
org.apache.jackrabbit.guava.common.io.Files.move(sorted, file);
}

/**
Expand Down

0 comments on commit 7efcf23

Please sign in to comment.