Skip to content

Commit

Permalink
Move import into local block, thanks Arman
Browse files Browse the repository at this point in the history
  • Loading branch information
valencik committed Jan 31, 2024
1 parent 0a9fa47 commit 48ddacf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
package textmogrify.lucene.utils

import scala.annotation.nowarn
import scala.collection.JavaConverters._
import org.apache.lucene.analysis.CharArraySet

@nowarn("cat=deprecation")
object CharArraySetUtils {
import scala.collection.JavaConverters._

@nowarn("cat=deprecation")
def toSet(cs: CharArraySet): Set[String] =
cs.asScala.map(ca => String.valueOf(ca.asInstanceOf[Array[Char]])).toSet
}

0 comments on commit 48ddacf

Please sign in to comment.