summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/SortedMap.scala
Commit message (Collapse)AuthorAgeFilesLines
* Cull extraneous whitespace.Paul Phillips2013-09-181-6/+2
| | | | | | | | | | | | | | | | | | | | | One last flurry with the broom before I leave you slobs to code in your own filth. Eliminated all the trailing whitespace I could manage, with special prejudice reserved for the test cases which depended on the preservation of trailing whitespace. Was reminded I cannot figure out how to eliminate the trailing space on the "scala> " prompt in repl transcripts. At least reduced the number of such empty prompts by trimming transcript code on the way in. Routed ConsoleReporter's "printMessage" through a trailing whitespace stripping method which might help futureproof against the future of whitespace diseases. Deleted the up-to-40 lines of trailing whitespace found in various library files. It seems like only yesterday we performed whitespace surgery on the whole repo. Clearly it doesn't stick very well. I suggest it would work better to enforce a few requirements on the way in.
* Absolutized paths involving the scala package.Paul Phillips2013-05-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Confusing, now-it-happens now-it-doesn't mysteries lurk in the darkness. When scala packages are declared like this: package scala.collection.mutable Then paths relative to scala can easily be broken via the unlucky presence of an empty (or nonempty) directory. Example: // a.scala package scala.foo class Bar { new util.Random } % scalac ./a.scala % mkdir util % scalac ./a.scala ./a.scala:4: error: type Random is not a member of package util new util.Random ^ one error found There are two ways to play defense against this: - don't use relative paths; okay sometimes, less so others - don't "opt out" of the scala package This commit mostly pursues the latter, with occasional doses of the former. I created a scratch directory containing these empty directories: actors annotation ant api asm beans cmd collection compat concurrent control convert docutil dtd duration event factory forkjoin generic hashing immutable impl include internal io logging macros man1 matching math meta model mutable nsc parallel parsing partest persistent process pull ref reflect reify remote runtime scalap scheduler script swing sys text threadpool tools transform unchecked util xml I stopped when I could compile the main src directories even with all those empties on my classpath.
* More explicit empty paren lists in method calls.Jason Zaugg2013-02-241-2/+2
|
* Brings all copyrights (in comments) up-to-date, from 2011/12 to 2013Heather Miller2012-11-021-1/+1
|
* Fix SI-5846 and SI-4027.Aleksandar Prokopec2012-06-281-1/+18
|
* Updated copyright notices to 2011Antonio Cunei2011-01-201-1/+1
|
* Removed more than 3400 svn '$Id' keywords and r...Antonio Cunei2010-05-121-1/+0
| | | | | Removed more than 3400 svn '$Id' keywords and related junk.
* Fix for #3204. No review.Paul Phillips2010-03-261-1/+1
|
* You try to get away with one little line of unc...Paul Phillips2010-03-231-1/+1
| | | | | | | You try to get away with one little line of uncompiled patch... reverting last patch since I'm too tired to see why it broke the build. No review.
* Fix for #3204.Paul Phillips2010-03-231-2/+2
| | | | | | | that can arise when return types of public facing methods are inferred. We eventually need some mechanism to make such issues easier to avoid. No review.
* Updated copyright notices to 2010Antonio Cunei2009-12-071-1/+1
|
* fixed #2500 (second part)Adriaan Moors2009-11-031-1/+1
| | | | | missed some compile errors because I didn't do a full recompile...
* fixed #2500: refactoring collections so that a ...Adriaan Moors2009-11-031-2/+3
| | | | | | | | | | fixed #2500: refactoring collections so that a `collection.{Map|SortedMap|SortedSet}` can be built from the corresponding collection (thus, do not require the immutable one) pulling up newBuilder method from Immutable*Factory to *Factory, and inheriting *Factory in scala.collection companion objects, instead of the Immutable*Factory this way, you can, e.g., build a collection.Map from a collection.Map (instead of requiring an immutable.Map)
* renamed BuilderFactory[El, To, From] -> CanBuil...Adriaan Moors2009-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | renamed BuilderFactory[El, To, From] -> CanBuildFrom[From, El, To] and added apply() overload to create collections from scratch generically added def apply() overload to BuilderFactory so that we can also create collections from scratch generically (see test test/files/pos/collectGenericCC.scala) renaming: - BuilderFactory[El, To, From] -> CanBuildFrom[From, El, To] bulk type-param reordering using: s/CanBuildFrom\[\s*([^,()\s]*)\s*,(\s+[^\s,()]*)\s*,\s+([^\s,()]*)\s*\]/CanBuildFrom[$3, $1,$2]/ some argument lists got mixed up because they contained 4 comma's... - builderFactory -> canBuildFrom removed explicit implicit value in DocDriver that was renamed renamed collection/generic/BuilderFactory.scala -> collection/generic/CanBuildFrom.scala tested with clean build using ant strap.done -- everything went well on my machine
* more @since annotationsstepancheg2009-09-261-0/+4
|
* Collections refactoring.Martin Odersky2009-09-251-1/+2
|
* fixed Scala comments, added svn:keywordsmichelou2009-07-071-1/+1
|
* cleaned up collection builder frameworkMartin Odersky2009-05-141-2/+10
|
* Removed redundant type parameter for class Buil...Martin Odersky2009-05-091-1/+1
| | | | | Removed redundant type parameter for class Builder
* massive new collections checkin.Martin Odersky2009-05-081-27/+9
|
* Updated (all) copyright notices to 2009Antonio Cunei2009-01-131-1/+1
|
* deprecated &f, .f, requires.Martin Odersky2007-06-051-1/+1
| | | | | Added existential types.
* [1] upgraded buffered iterator to have unbounde...Sean McDirmid2007-05-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | [1] upgraded buffered iterator to have unbounded lookahead [2] down-graded some custom iterators that could not implement this behavior (compatible because the signatures only indicate Iterator) [3] added RollBackIterator for iterators that can be backed up (useful for scanning) [4] DefaultBufferedIterator for a nice default implementaiton of BufferedIterator [5] Added RandomAccessSeq for Seq's that can be indexed in linear time (e.g., Array), optimized seq methods for these seqs. Got the appropriate classes to inherit from this trait [6] Enhanced projections so they are iterables. An operation on a projection is also a projection (if possible) [7] Various small enhancements to the JCL
* added svn keywords, improved commentsmichelou2007-02-261-1/+1
|
* (no commit message)Sean McDirmid2007-02-261-0/+44