[TEST] compare strings and strings - leftover from Path API refactoring
This commit is contained in:
parent
3a3030e217
commit
8ffe8e0259
|
@ -486,7 +486,7 @@ public class CorruptedFileTest extends ElasticsearchIntegrationTest {
|
||||||
Path file = Paths.get(path).resolve(relativeDataLocationPath);
|
Path file = Paths.get(path).resolve(relativeDataLocationPath);
|
||||||
try (DirectoryStream<Path> stream = Files.newDirectoryStream(file)) {
|
try (DirectoryStream<Path> stream = Files.newDirectoryStream(file)) {
|
||||||
for (Path item : stream) {
|
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())) {
|
if (includePerCommitFiles || isPerSegmentFile(item.getFileName().toString())) {
|
||||||
files.add(item);
|
files.add(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue