Skip to content

Commit

Permalink
Simplify build, just ignore deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
valencik committed Jan 31, 2024
1 parent b665cc6 commit 0a9fa47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@

package textmogrify.lucene.utils

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

object CharArraySetUtils {

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

0 comments on commit 0a9fa47

Please sign in to comment.