summaryrefslogtreecommitdiff
path: root/src/library
Commit message (Collapse)AuthorAgeFilesLines
* SI-8754 linear seqs aren'tRex Kerr2014-11-263-17/+26
| | | | LinearSeqLike still isn't exactly linear (LinearSeqOptimized is), but at least the docs now give reasonably correct information about what is actually going on.
* Merge pull request #4084 from vigdorchik/usecase_sigsGrzegorz Kossakowski2014-11-2117-12/+33
|\ | | | | Correct collections variable definitions to avoid many scaladoc warnings.
| * Correct collections variable definitions to avoid many scaladoc warnings.Eugene Vigdorchik2014-11-0617-12/+33
| |
* | Merge pull request #4132 from phaller/ticket/7444Jason Zaugg2014-11-191-8/+10
|\ \ | | | | | | SI-7444 docs: null Executor allowed in ExecutionContext factories
| * | SI-7444 docs: null Executor allowed in ExecutionContext factoriesPhilipp Haller2014-11-141-8/+10
| | | | | | | | | | | | | | | Update the ScalaDoc for the factory methods for `ExecutionContext` which allow a `null` `Executor`/`ExecutorService`.
* | | Merge pull request #4075 from som-snytt/issue/8835-junitGrzegorz Kossakowski2014-11-171-2/+2
|\ \ \ | | | | | | | | SI-8835 Iterator tests can be junit
| * | | SI-8835 Iterator tests can be junitSom Snytt2014-11-111-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Without loss of generality or convenience, but helps reduce the number of files in test/files and may reduce compile times for test suite. This commit includes the fix from #3963 and an extra test of that fix that ensures the stack doesn't grow on chained drops.
* | | Merge pull request #4128 from ruippeixotog/issue/8932Grzegorz Kossakowski2014-11-174-8/+8
|\ \ \ | |/ / |/| | SI-8932 Fix dropRight/takeRight implementations
| * | SI-8932 Fix dropRight/takeRight implementationsRui Gonçalves2014-11-114-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | I looked up at all the overrides of `IterableLike#takeRight` and `IterableLike#dropRight` and replaced usages of its argument `n` with `math.max(n, 0)` every time it was being used in an index subtraction. Fixes [SI-8932](https://issues.scala-lang.org/browse/SI-8932).
* | | Merge pull request #3963 from erikerlandson/si-8835-prLukas Rytz2014-11-111-1/+8
|\ \ \ | |/ / |/| | SI-8835 Fix implementation of Iterator drop to remove quadratic behavior
| * | SI-8835 Fix implementation of Iterator drop to remove quadratic behaviorErik Erlandson2014-10-211-1/+8
| |/
* | Merge pull request #4047 from lrytz/delambda-method-testsLukas Rytz2014-11-072-1/+6
|\ \ | | | | | | Fix tests under -Ydelambdafy:method
| * | Fix t8549 under -Ydelambdafy:methodLukas Rytz2014-10-102-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the structure of Option.class generated by delambdafy:method is slightly different. For example, lambdas declared within Option are not emitted as nested classes, so under delambdafy:method there's no inner class entry for anonfun classes. The test failed because serializing a ClassTag involves serializing an Option. Option did not have a `@SerialVersionUID`, and the classfile generated by delambdafy:method has a different value. The annotation is required on the parent class (Option) as well as the subclasses (Some / None). De-serializing a Some will fail if Option has a different SerialVersionUID. Relates to SI-8576. We should probably have more SVUID annotations in the library.
* | | Merge pull request #4089 from gourlaysama/wip/t6626-scaladoc-throws-linksVlad Ureche2014-11-0526-64/+66
|\ \ \ | | | | | | | | SI-6626 make @throws tags create links to exceptions
| * | | cleanup @throws tags in library and reflectAntoine Gourlay2014-11-0526-64/+66
| | | | | | | | | | | | | | | | | | | | - there is no need for explicit links with [[ and ]] - there is no need for explicit backquoting
* | | | Merge pull request #4054 from soc/SI-8916Lukas Rytz2014-11-044-7/+5
|\ \ \ \ | |/ / / |/| | | SI-8916 Clean up unused imports, values and variables
| * | | SI-8916 Further fixes with -Ywarn-unused includedSimon Ochsenreither2014-10-243-5/+4
| | | |
| * | | SI-8916 Fix -Ywarn-unused-import warningsSimon Ochsenreither2014-10-241-2/+1
| | |/ | |/|
* | | Merge pull request #4052 from Lymia/issue/8910Jason Zaugg2014-11-041-4/+4
|\ \ \ | |/ / |/| | SI-8910 BitSet sometimes uses exponential memory.
| * | SI-8910 BitSet sometimes uses exponential memory.Alissa Rao2014-10-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because of an off-by-one error in scala.collection.mutable.BitSet, where a function (ensureCapacity) is passed a list length instead of an index, when ^=, &=, |=, or &~= are passed BitSets with the same internal capacity as the set the method is being invoked on, the size of the first BitSet is needlessly doubled. This patch simply changes the ensureCapacity calls to pass the last index of the list, instead of the raw length. In addition, add documentation to ensureCapacity to try and stop something similar from happening in the future.
* | | [nomerge] SI-8899 Revert "SI-8627 make Stream.filterNot non-eager"Lukas Rytz2014-10-122-14/+12
|/ / | | | | | | | | | | | | | | | | This reverts commit 9276a1205f74fdec74206209712831913e93f359. The change is not binary compatible, See discussion on SI-8899. Making filterImpl non-private changes its call-sites (within TraversableLike) from INVOKESTATIC to INVOKEINTERFACE. Subclasses of TraversableLike compiled before this change don't have a mixin for filterImpl.
* | Update stripPrefix/StringLike docs to talk about no op caseMax Bileschi2014-10-071-3/+9
| | | | | | | | Incorporate review comments by Som Snytt.
* | Merge pull request #4019 from Ichoran/issue/6192Lukas Rytz2014-10-061-1/+7
|\ \ | | | | | | SI-6192 Range: to, until and end are confusing
| * | SI-6192 Range: to, until and end are confusingRex Kerr2014-09-301-1/+7
| |/ | | | | | | Added some documentation explaining what the role of `end` is.
* / SI-8624 PriorityQueue documentation is not clear enoughRex Kerr2014-09-301-0/+5
|/ | | | Added a paragraph explaining that dequeue is the only way to get your elements in priority order.
* Merge pull request #3994 from puffnfresh/feature/system-compiler-propertiesGrzegorz Kossakowski2014-09-241-3/+3
|\ | | | | Make compiler.properties fall back to prefixed
| * Make compiler.properties fall back to prefixedBrian McKenna2014-09-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | Previously, if we wanted to override the shell.prompt property, we had to modify compiler.properties in the jar. This change lets us do the following, instead: scala -Dscala.shell.prompt="$(echo -e "\npuffnfresh> ")" All properties previously loaded from compiler.properties now fall back to "scala." in the system properties when not found.
* | HasSet to HashSet typo fixKrystian Nowak2014-09-221-1/+1
|/
* Merge pull request #3848 from Ichoran/issue/8680Lukas Rytz2014-09-161-14/+111
|\ | | | | SI-8680 Stream.addString is too eager
| * SI-8680 Stream.addString is too eagerRex Kerr2014-09-121-14/+111
| | | | | | | | | | | | | | | | | | | | Used the standard method of sending out two iterators, one twice as fast as the others, to avoid hanging on .force, .hasDefiniteSize, and .addString. .addString appends a "..." as the last element if it detects a cycle. It knows how to print the cycle length, but there's no good way to specify what you want right now, so it's not used. Added tests in t8680 that verify that cyclic streams give the expected results. Added to whitelist names of methods formerly used for recursion (now looping).
* | Merge pull request #3941 from Ichoran/issue/8815Lukas Rytz2014-09-161-27/+11
|\ \ | | | | | | SI-8815 mutable.LongMap makes different choices for splitAt vs etc.
| * | SI-8815 mutable.LongMap makes different choices for splitAt vs etc.Rex Kerr2014-09-111-27/+11
| |/ | | | | | | | | | | | | | | | | | | It turns out that take/drop/splitAt/takeWhile/dropWhile inherit a smattering of foreach vs. iterator-based implementations. These aren't consistent unless they iterate in the same order. This probably reflects an undesirable underlying weakness, but in this particular case it was easy to make LongMap's foreach order agree with iterator. Made traversal order of other foreach-like methods match also. Also fixed a bug where Long.MinValue wasn't iterated. Added unit test for iteration coverage of extreme values.
* | Merge pull request #3977 from terma/issue/8817Vlad Ureche2014-09-121-5/+4
|\ \ | |/ |/| SI-8817 Correct scaladoc for scala.sys.addShutdownHook
| * SI-8817 Correct scaladoc for scala.sys.addShutdownHookterma2014-09-111-5/+4
| | | | | | | | | | - Remove mention that shutdown hook is daemon thread - Add link on scala.sys.ShutdownHookThread class
* | Merge pull request #3801 from Ichoran/issue/8474Grzegorz Kossakowski2014-09-092-16/+47
|\ \ | |/ |/| SI-8474 Inconsistent behavior of patch method
| * SI-8474 Inconsistent behavior of patch methodRex Kerr2014-08-242-16/+47
| | | | | | | | | | | | | | | | Changed Iterator to be consistent with other collections. Also fixed SeqViewLike to validate/constrain inputs. No specific tests; quasi-comprehensive collection tests will cover this later.
* | Merge commit 'b5759ef' into merge/2.10-to-2.11-sept-2Lukas Rytz2014-09-021-1/+6
|\ \
| * | SI-8589 Performance improvement for ArrayCharSequence.toStringJeroen ter Voorde2014-06-191-1/+6
| | |
| * | Merge pull request #3359 from huitseeker/issue/VarianceAdaptationsJason Zaugg2014-01-216-6/+6
| |\ \ | | | | | | | | [backport] Backports library changes related to SI-6566 from a419799
| | * | Backports library changes related to SI-6566 from a419799François Garillot2014-01-136-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea of backporting this occured while developing the -source flag for SI-8126 : withouth this the library breaks at refchecks for a Scala compiler that checks type aliases variance. This shoudl be BC and promote good hygiene.
| * | | More clear implicitNotFound error for ExecutionContextJames Ward2014-01-081-1/+1
| |/ /
* | | Merge pull request #3949 from lrytz/t8627Grzegorz Kossakowski2014-08-272-12/+14
|\ \ \ | | | | | | | | SI-8627 make Stream.filterNot non-eager
| * | | SI-8627 make Stream.filterNot non-eagerLukas Rytz2014-08-272-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The obvious fix, overriding `filterNot` in Stream, is not binary compatible, see https://github.com/scala/scala/pull/3925 Instead, this makes `filterImpl` in TaversableLike private[scala], which allows overriding it in Stream. The corresponding mima-failures can be whitelisted, as the changes are only to private[scala]. In 2.12.x we can remove the override of `filter` in Stream, but in 2.11.x this is not binary compatible. Eventually we'd also like to make filter / filterNot in TraversableLike final, but that's not source compatible, so it cannot be done in 2.12.x.
* | | | Merge remote-tracking branch 'upstream/2.11.x' into backportsLukas Rytz2014-08-266-172/+257
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | Conflicts: src/library/scala/util/matching/Regex.scala
| * | | Merge pull request #3923 from som-snytt/issue/8787Grzegorz Kossakowski2014-08-191-169/+245
| |\ \ \ | | |/ / | |/| | SI-8787 Regextraction is null-proof
| | * | SI-8787 Addressing feedback, additional periods.Som Snytt2014-08-121-31/+65
| | | |
| | * | SI-8787 Update doc for RegexSom Snytt2014-08-101-134/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify the exposition and update the examples. Emphasize pattern matching, especially using `r.unanchored` instead of `for (r(x,y,z) <- r findFirstIn text)`. Certain details are moved to method docs. It would be nice to fix matching package doc, but the doc must attach to the package object, it seems. Introducing a package object is not binary-compatible. Includes a doc line edit on 2.12, anticipating the merge.
| | * | SI-8787 If you love nulls, so does RegexSom Snytt2014-08-081-10/+11
| | | | | | | | | | | | | | | | Regex is robust when unapplying null. A null never matches.
| * | | SI-8512 Infer a type for f"$args"Som Snytt2014-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The f-interpolator gets a type param that better be Any to avoid unfortunate widenings. Hey, it worked! Unfortunately, when `Any` is inferred, `-Xlint:infer-any` takes notice. This is probably a greater problem for the f-interpolator than for quasiquotes, which are a more specialized tool.
| * | | Merge pull request #3907 from gourlaysama/wip/proxyLukas Rytz2014-08-124-0/+4
| |\ \ \ | | | | | | | | | | a few missing deprecations in proxy collections.