mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:10:43 +07:00
Use set to ensure that resource list is distinct
(cherry picked from commit 5cd89c56f132cdb2367e30dc1cd8fda535a3b175) (cherry picked from commit ee9b197a3b470140a05ae016b5c652f74e1c89e7) IJ-MR-166587 GitOrigin-RevId: 26cf7b2cdec1e124ee3fc0becbe02d438ac3c77f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fe33409282
commit
a1b59f953b
@@ -21,15 +21,13 @@ import java.nio.file.Path
|
||||
import java.nio.file.Paths
|
||||
import java.util.*
|
||||
|
||||
|
||||
class HelpSearch {
|
||||
|
||||
companion object {
|
||||
private val resources = arrayOf("_0.cfe", "_0.cfs", "_0.si", "segments_1")
|
||||
private val resources = setOf("_0.cfe", "_0.cfs", "_0.si", "segments_1")
|
||||
|
||||
@NonNls
|
||||
private const val NOT_FOUND = "[]"
|
||||
|
||||
private val analyzer: StandardAnalyzer = StandardAnalyzer()
|
||||
|
||||
@NotNull
|
||||
@@ -39,6 +37,7 @@ class HelpSearch {
|
||||
val indexDir: Path? = Files.createTempDirectory("search-index")
|
||||
var indexDirectory: NIOFSDirectory? = null
|
||||
var reader: DirectoryReader? = null
|
||||
|
||||
if (indexDir != null)
|
||||
try {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user