Skip to content

Commit 732fe22

Browse files
committed
Fix deprecation warning on new Integer(_)
1 parent f7ee426 commit 732fe22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yubico-util/src/test/scala/com/yubico/internal/util/ComparableUtilSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ComparableUtilSpec extends FunSpec with Matchers with GeneratorDrivenPrope
2121
} yield (a, b)
2222

2323
def toJava(s: Set[Int]): java.util.SortedSet[Integer] =
24-
new java.util.TreeSet[Integer](s.map(new Integer(_)).asJava)
24+
new java.util.TreeSet[Integer](s.map(_.asInstanceOf[java.lang.Integer]).asJava)
2525

2626
describe("compareComparableSets") {
2727
it("sorts differently-sized sets in order of cardinality.") {

0 commit comments

Comments
 (0)