Skip to content

Commit 2f6aae6

Browse files
committed
OAK-11428: Remove usage of Guava Files.copy() - oak-lucene
1 parent 250312b commit 2f6aae6

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneWritesOnSegmentStatsTest.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
2019
package org.apache.jackrabbit.oak.plugins.index.lucene;
2120

2221
import java.io.File;
@@ -30,7 +29,6 @@
3029
import java.util.concurrent.Executors;
3130
import java.util.concurrent.ScheduledExecutorService;
3231

33-
import org.apache.jackrabbit.guava.common.io.Files;
3432
import org.apache.commons.io.FileUtils;
3533
import org.apache.jackrabbit.core.data.FileDataStore;
3634
import org.apache.jackrabbit.oak.InitialContent;
@@ -374,18 +372,4 @@ private void printStats() throws IOException {
374372
System.out.println("Index on FS size : " + FileUtils.byteCountToDisplaySize(sizeOfFSIndex));
375373
}
376374
}
377-
378-
private long dumpFileStoreTo(File to) throws IOException {
379-
if (!to.exists()) {
380-
assert to.mkdirs();
381-
}
382-
for (File f : DIRECTORY.listFiles()) {
383-
Files.copy(f, new File(to.getPath(), f.getName()));
384-
}
385-
386-
long sizeOfDirectory = FileUtils.sizeOfDirectory(to);
387-
388-
to.deleteOnExit();
389-
return sizeOfDirectory;
390-
}
391375
}

0 commit comments

Comments
 (0)