Skip to content

Commit

Permalink
Add javadocs and fix SIMPLEFS enum order
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize committed Dec 1, 2021
1 parent 6f1d95e commit 811ddc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ protected Directory newFSDirectory(Path location, LockFactory lockFactory, Index
} else {
return primaryDirectory;
}
case SIMPLEFS:
case MMAPFS:
return setPreload(new MMapDirectory(location, lockFactory), lockFactory, preLoadExtensions);
// simplefs was removed in Lucene 9; support for enum is maintained for bwc
case SIMPLEFS:
case NIOFS:
return new NIOFSDirectory(location, lockFactory);
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ private void doTestStoreDirectory(Path tempDir, String typeSettingValue, IndexMo
case HYBRIDFS:
assertTrue(FsDirectoryFactory.isHybridFs(directory));
break;
// simplefs was removed in Lucene 9; support for enum is maintained for bwc
case SIMPLEFS:
case NIOFS:
assertTrue(type + " " + directory.toString(), directory instanceof NIOFSDirectory);
Expand Down

0 comments on commit 811ddc2

Please sign in to comment.