diff options
author | Paul Phillips <paulp@improving.org> | 2009-11-18 23:24:23 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-11-18 23:24:23 +0000 |
commit | 2a6a02e9a782b7621e3dc79d2f07fca074b11bb6 (patch) | |
tree | 54a5c40bcd7bdb8895dd35bf66da62007b51fa94 /src/compiler/scala/tools/nsc/Settings.scala | |
parent | d92679d81c8674e2e21cc18103d10ab16a3b8e0d (diff) | |
download | scala-2a6a02e9a782b7621e3dc79d2f07fca074b11bb6.tar.gz scala-2a6a02e9a782b7621e3dc79d2f07fca074b11bb6.tar.bz2 scala-2a6a02e9a782b7621e3dc79d2f07fca074b11bb6.zip |
More deprecation soothing.
warning count.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Settings.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Settings.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Settings.scala b/src/compiler/scala/tools/nsc/Settings.scala index 314b575f1e..50ef58232b 100644 --- a/src/compiler/scala/tools/nsc/Settings.scala +++ b/src/compiler/scala/tools/nsc/Settings.scala @@ -426,7 +426,8 @@ object Settings { // Ordered (so we can use TreeSet) def compare(that: Setting): Int = name compare that.name - def compareLists[T <% Ordered[T]](xs: List[T], ys: List[T]): Boolean = xs.sort(_ < _) == ys.sort(_ < _) + def compareLists[T <% Ordered[T]](xs: List[T], ys: List[T]): Boolean = + xs.sortWith(_ < _) == ys.sortWith(_ < _) // Equality def eqValues: List[Any] = List(name, value) |