diff --git a/lucene/src/main/scala/textmogrify/lucene/utils/CharArraySetUtils.scala b/lucene/src/main/scala/textmogrify/lucene/utils/CharArraySetUtils.scala index 70c997d..6db1c60 100644 --- a/lucene/src/main/scala/textmogrify/lucene/utils/CharArraySetUtils.scala +++ b/lucene/src/main/scala/textmogrify/lucene/utils/CharArraySetUtils.scala @@ -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 }