summaryrefslogtreecommitdiff
path: root/src/library
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| | * | | a few missing deprecations in proxy collections.Antoine Gourlay2014-07-314-0/+4
| | |/ / | | | | | | | | | | | | | | | | | | | | SeqProxy was properly deprecated, so were the CollProxyLike classes, and the ones in collection.immutable, but these four somehow survived the Big Proxy Deprecation (tm).
| * | | Merge pull request #3889 from som-snytt/issue/6476-altLukas Rytz2014-08-121-2/+7
| |\ \ \ | | |/ / | |/| | SI-6476 Improve error on escapement
| | * | SI-6476 Improve error on escapementSom Snytt2014-07-181-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Behavior of escape processing under string interpolation can be confusing. This commit improves the exception message so you know at least what sort of escapes are handled. This came up on SO in the form `s"\d".r`, where it may not be obvious what is throwing and how to work around it. ``` scala> s"\d".r scala.StringContext$InvalidEscapeException: invalid escape '\d' not one of [\b, \t, \n, \f, \r, \\, \", \'] at index 0 in "\d". Use \\ for literal \. scala> s"a\" scala.StringContext$InvalidEscapeException: invalid escape at terminal index 1 in "a\". Use \\ for literal \. ``` Referencing SI-6476 because that has become the magnet ticket for "escape processing under string interpolation, huh?" This doesn't address `$"` and doesn't handle the more interesting parse error `s"a\"b"`.
* | | | [backport] Fixes cut sentences in the generated scaladocsDominik Gruntz2014-08-1111-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes all first sentences of library functions which contain `i.e.` or `e.g.` and adds a `,` to prevent that the scaladoc summary sentence is cut after this abbreviation. This is possible as pull/3824 fixed how Scaladoc parses the first sentence of a method description into a sumary sentence(now the first sentence has to end with a dot followed by whitespace). Only docs in the core library are changed (src/library/**/*.scala) and only if they occur in the first sentence. Review by @heathermiller (cherry picked from commit 72721ff5dd06dea1235ecb71acae0bd61aee4814)
* | | | [backport] Refactored example to Option.collect method.jxcoder2014-08-111-3/+3
| | | | | | | | | | | | | | | | (cherry picked from commit 7cca7635b392cb533d0f8e26b74d7362c0dd3891)
* | | | [backport] Fixed mathematically wrong statement in the documentation of ↵Malte Isberner2014-08-111-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scala.math.PartialOrdering. - Previous (misleading) documentation suggested that a partial ordering *is* an equivalence relation. This has now been clarified. - Existing documentation on properties of partial orderings (reflexive, transitive, antisymmetric) had several formatting inconsistencies that have now been remove. (cherry picked from commit 528df5becee03175e7462b64d7c22460cc5992f7)
* | | | [backport] Fix scaladoc typoLukas Elmer2014-08-111-1/+1
| | | | | | | | | | | | | | | | (cherry picked from commit 0a1694d8048f01b7f0812cedaa341813e9044e7f)
* | | | [backport] Did not know of the fix for SI-8672. Followed the recommendation ↵Dominik Gruntz2014-08-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | given by som-snytt. (cherry picked from commit ec4abf5483e890976ae460252e80a66a95674e61)
* | | | [backport] Fixes first sentence delimitersdgruntz2014-08-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Scaladoc places the first sentence in the method summary table and index. The first sentence is defined as the sequence of chars up to the first period (not as in JavaDoc where the sentence ends with the first period *followed by a blank*). As a consequence, the clause starting with `i.e.` is interpreted as sentende delimiter. This request replaces `i.e.` with `i&period;e&period;`. Alghough a valid HTML code, I do not know whether this change is compatible with other tools. And I assume that this is not the only source file affected. (cherry picked from commit c2e4da674d8c40e2d220854a966b0510fb6d459e)
* | | | [backport] [scaladoc] Changed align of example code to Option.contains and ↵Maks Atygaev2014-08-111-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | Option.collect methods. (cherry picked from commit e3311073bbad6f6f0dfdd3ea09628d324b4b3614)
* | | | [backport] SI-8705 Added example to Option.contains method.jxcoder2014-08-111-0/+11
| | | | | | | | | | | | | | | | (cherry picked from commit 1e2a21681a4a55469faa59b07473a3b269e70258)
* | | | [backport] Added example to Option.collect method.jxcoder2014-08-111-0/+11
| | | | | | | | | | | | | | | | (cherry picked from commit 6c698089aeb55e649a65dd7ae1bce2b4514ee865)
* | | | [backport] Change StringContext scaladocEvgeny Vereshchagin2014-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See e2a3498 commit message for explanation Explicit private declaration better than implicit Thanks to @som-snytt (cherry picked from commit d071abe8dd9035d8dd246ecb6b207e584b6437fa)
* | | | [backport] som-snytt's update to wordingMax Bileschi2014-08-111-3/+3
| | | | | | | | | | | | | | | | (cherry picked from commit 80a9e908fd7b591a6fe452d908407d537675a999)
* | | | [backport] Revised comment to appeal to lchoran's and som-snytts commentsMax Bileschi2014-08-111-5/+4
| | | | | | | | | | | | | | | | (cherry picked from commit 71bc2e5f4c49463a754a6f23e3abd2d27467fca4)
* | | | [backport] Update PartialFunction documentation to include the fact that the ↵Max Bileschi2014-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | caller is responsible for checking 'isDefinedAt' (cherry picked from commit 455bcd65c055119f928b3367839f0093cf0e251a)
* | | | [backport] Update PartialFunction documentation to include the fact that the ↵Max Bileschi2014-08-111-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | caller is responsible for checking 'isDefinedAt' (cherry picked from commit f7d2cec3a0c31836747a25e3cc5949d1f3cbdff4)
* | | | [backport] Make comment consistent with codeEvgeny Vereshchagin2014-08-111-1/+1
|/ / / | | | | | | | | | (cherry picked from commit fd001811c662f6daecf91319b36c1ad14a87ff72)
* | | Fixed incorrect example in StringContext.raw docDan Garrette2014-07-211-1/+1
| | | | | | | | | As pointed out by @som-snytt, \u0023 is #, not \u0025.
* | | Remove "throws InvalidEscapeException" from StringContext.raw docDan Garrette2014-07-211-2/+0
| | | | | | | | | Since StringContext.raw doesn't escape its input, it does not call `treatEscapes` and cannot throw the InvalidEscapeException.
* | | SI-8738 Regression in range equalityRex Kerr2014-07-201-9/+10
|/ / | | | | | | | | | | Missed the case of comparing a non-empty range to an empty one. Fixed by checking nonEmpty/isEmpty on other collection. Added a test to verify the behavior.
* | SI-8590 Expand doc comments for ExecutionContextPhilipp Haller2014-07-141-12/+60
| | | | | | | | | | | | | | - link to Java API docs for ForkJoinPool-based default implementation - add example for creating an execution context from a `java.util.concurrent.ExecutorService` - add tags for parameters and return values - expand doc comment for `prepare`
* | Merge pull request #3866 from Blaisorblade/issue/8677-backportLukas Rytz2014-07-091-1/+1
|\ \ | | | | | | SI-8677 Duration: Zero - Inf should be MinusInf
| * | [backport] SI-8677 Duration: Zero - Inf should be MinusInfPaolo G. Giarrusso2014-07-041-1/+1
| | | | | | | | | | | | | | | Fixes #8677. Add basic tests. This is a backport from 2.12.x of dead39dc5f21c6eac41788e93426c50ddd398c24.
* | | Merge pull request #3842 from Ichoran/issue/8335Adriaan Moors2014-07-041-4/+2
|\ \ \ | | | | | | | | SI-8335 List.++ avoidably burns memory
| * | | SI-8335 List.++ avoidably burns memoryRex Kerr2014-06-271-4/+2
| | | | | | | | | | | | | | | | Changed to check the identity of the CanBuildFrom instead of the identity of the generated builder to shortcut building. Should reduce memory churn on ++ a little.
* | | | Merge pull request #3840 from Ichoran/issue/8638Adriaan Moors2014-07-041-21/+27
|\ \ \ \ | |_|/ / |/| | | SI-8638 Empty UnrolledBuffer hangs on prepend.
| * | | SI-8638 Empty UnrolledBuffer hangs on prepend.Rex Kerr2014-06-271-21/+27
| |/ / | | | | | | | | | | | | | | | Tracked down bug to incorrect recursion in insertAll. Fixed by adding a missing case (which incidentally will provide better performance when adding to the end of a block). No specific tests, as this is caught by quasi-complete collections tests.
* | | Merge pull request #3841 from Ichoran/issue/5200Adriaan Moors2014-07-032-12/+12
|\ \ \ | | | | | | | | SI-5200 Incorrect advice for implementing mutable.Set in scaladoc
| * | | SI-5200 Incorrect advice for implementing mutable.Set in scaladocRex Kerr2014-06-272-12/+12
| |/ / | | | | | | | | | Fixed advice; it was already there in mutable.SetLike but a case sensitivity error kept it from appearing.
* | | Merge pull request #3839 from Ichoran/issue/7115Adriaan Moors2014-07-033-1/+24
|\ \ \ | | | | | | | | SI-7115 JMapWrapper.get can incorrectly return Some(null)
| * | | SI-7115 JMapWrapper.get can incorrectly return Some(null)Rex Kerr2014-06-273-1/+24
| |/ / | | | | | | | | | | | | | | | | | | | | | This isn't incorrect. Trying to use a single-threaded interface in a concurrent context is supposed to break in various unpleasant ways. Documentation has been added to encourage one to avoid wrapping a concurrent map in the generic wrapper (which assumes a single thread), and pointing out that synchronized maps do not maintain synchronization for non-atomic operations (including get). More docs.