diff options
author | Paul Phillips <paulp@improving.org> | 2010-02-02 19:43:07 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-02-02 19:43:07 +0000 |
commit | 4aeae5f9c7aea8874965539f730e9abaa077729d (patch) | |
tree | fbc62a7100cd4f143011d0deaec2880efe5a760a /src/compiler/scala/tools/nsc/util/ClassPath.scala | |
parent | c8203f123f44057233cca331ceb2b823a1b67e6f (diff) | |
download | scala-4aeae5f9c7aea8874965539f730e9abaa077729d.tar.gz scala-4aeae5f9c7aea8874965539f730e9abaa077729d.tar.bz2 scala-4aeae5f9c7aea8874965539f730e9abaa077729d.zip |
Took a swing at sorting out sorting.
rewriting the Sorting methods to accept Orderings and adding a sorted
method to SeqLike, because we should all be pretty tired of writing
".sortWith(_ < _)" by now. I think it should be called "sort", not
"sorted", but that refuses to coexist gracefully with the deprecated
sort in List.
Review by moors (chosen pretty arbitrarily, someone at epfl should
review it but I don't know who deserves the nomination.)
Diffstat (limited to 'src/compiler/scala/tools/nsc/util/ClassPath.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/util/ClassPath.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/util/ClassPath.scala b/src/compiler/scala/tools/nsc/util/ClassPath.scala index 5b20362880..a5e62ff542 100644 --- a/src/compiler/scala/tools/nsc/util/ClassPath.scala +++ b/src/compiler/scala/tools/nsc/util/ClassPath.scala @@ -69,7 +69,7 @@ object ClassPath { val assem = Assembly.LoadFrom(assemFile.path) if (assem != null) { // DeclaringType == null: true for non-inner classes - res = assem.GetTypes().filter((typ: MSILType) => typ.DeclaringType == null) + res = assem.GetTypes() filter (_.DeclaringType == null) Sorting.stableSort(res, (t1: MSILType, t2: MSILType) => (t1.FullName compareTo t2.FullName) < 0) } res |