Skip to content

Commit

Permalink
Fix deprecation warning on new Integer(_)
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed Nov 8, 2019
1 parent f7ee426 commit 732fe22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ComparableUtilSpec extends FunSpec with Matchers with GeneratorDrivenPrope
} yield (a, b)

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

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

0 comments on commit 732fe22

Please sign in to comment.