[TEST] compare strings and strings - leftover from Path API refactoring

This commit is contained in:
Simon Willnauer 2014-12-09 14:22:15 +01:00
parent 3a3030e217
commit 8ffe8e0259
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ public class CorruptedFileTest extends ElasticsearchIntegrationTest {
Path file = Paths.get(path).resolve(relativeDataLocationPath);
try (DirectoryStream<Path> stream = Files.newDirectoryStream(file)) {
for (Path item : stream) {
if (Files.isRegularFile(item) && "write.lock".equals(item.getFileName()) == false) {
if (Files.isRegularFile(item) && "write.lock".equals(item.getFileName().toString()) == false) {
if (includePerCommitFiles || isPerSegmentFile(item.getFileName().toString())) {
files.add(item);
}