| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Add the first iteration of the `util.hashing` package.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Move `MurmurHash3` to `util.hashing`.
Make the `class` private and retain a public companion
`object`, and put the `MurmurHash3.Hashing` implementations
for various types in the companion.
Add a method which composes `ByteswapHashing` with some other hashing.
Rename `hashOf` to `hash`.
Fix chi-square test in a test-case.
Review by @jsuereth.
Moved a failing test that seems to use some other library version to pending.
|
|/
|
|
|
| |
Rather than stub implementations. This saves over 50K of bytecode.
I also added the necessary imports to silence the feature warnings.
|
|\
| |
| | |
Fixes typos in scaladoc of Orderes.scala
|
| | |
|
|\ \
| | |
| | | |
Fix SI-5880.
|
| |/
| |
| |
| | |
Add a ChiSquare test for the new hash code.
|
|\ \
| | |
| | | |
Fix SI-5867.
|
| |/
| |
| |
| | |
Override clone for unrolled buffer.
|
|\ \
| | |
| | | |
Fix SI-5879.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix a bug where a key in an immutable hash map
have the corresponding value different in the iteration
than when doing lookup. This use to happen after calling
`merge`.
Fix the order in which a key-value pair appears in
the collision resolution function - the first argument
always comes from the `this` hash map.
Deprecate `merge` in favour of `merged`, as this is
a pure method.
As an added benefit, the syntax for invoking `merge`
is now nicer.
|
|/ |
|
|
|
|
|
|
| |
Move `Hashing` to `scala.util.hashing`.
Adde `Hashing.Default` to `Hashing` companion object.
Change `TrieMap` to autoswitch from `Hashing.Default` to `TrieMap.MangledHashing`.
|
|
|
|
| |
Make Equiv serializable.
|
|
|
|
|
|
| |
Modify TrieMap to use hashing and equality.
Modify serialization in TrieMap appropriately.
|
| |
|
|
|
|
| |
Who could have suspected it would actually be right most of the time?
|
|\
| |
| | |
Fixes SI-5085 and SI-4833.
|
| | |
|
|\ \
| | |
| | | |
Fixes SI-5428.
|
| |/ |
|
|\ \
| | |
| | | |
Move implicit ExecutionContext to be determined by lexical scope
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Port of a pull request originally submitted by @havocp.
- declare the invariant that all app callbacks have an
associated ExecutionContext provided at the place
the callback is passed to a method on Future
- always run callbacks in their associated EC
- since all callbacks have their own EC, Promise
does not need one
- "internal" callbacks don't need to defer execution either
since we know the ultimate app callback will do so,
therefore we can use an immediate executor for these
|
|/ |
|
|\
| |
| | |
Fixes SI-5804.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The hash table initialSize method is now within
the the hashset and hashmap classes, and not in the companion.
Overriding this method now yields hashmaps and hashsets
of the proper initial capacity.
Review by @phaller.
|
|\ \
| | |
| | | |
Fixes SI-4461.
|
| |/
| |
| |
| | |
No review.
|
|\ \
| | |
| | | |
SIP-14: clean ups and fixes by @viktorklang
|
| | | |
|
| |/
|/| |
|
|\ \
| | |
| | | |
fixes resetAttrs
|
| | | |
|
|/ / |
|
| | |
|
|\| |
|
| |\
| | |
| | | |
mutable.MapLike: override $mapNote to reflect actual require mutable api
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The api needed to define a mutable.Map is different then the one
needed to define an immutable.Map. Prior to this patch the mutable one
reflected the api needed for the immutable one causing confusion about
what really needed to be defined.
|
| |\ \
| | | |
| | | | |
Small documentation fixes & small fix to Scaladoc @see formatting
|
| | | | |
|
| | | | |
|
| | | | |
|
|/ / / |
|
| |/
|/| |
|
| |
| |
| |
| | |
Culling accumulated unnecessary code.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
maxId is not really the "maximum id", but rather one past the max:
scala> object Foo extends Enumeration {
| val x = Value
| val y = Value
| }
defined module Foo
scala> Foo.maxId
res0: Int = 2
scala> Foo(2)
java.util.NoSuchElementException: key not found: 2
at scala.collection.MapLike$class.default(MapLike.scala:225)
...
scala> Foo(1)
res2: Foo.Value = y
|
|
|
|
| |
And undeprecated Positional.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Match @param/@tparam names to the actual parameter name
- Use @tparam for type parameters
- Whitespace is required between `*` and `@`
- Fix incorrect references to @define macros.
- Use of monospace `` and {{{}}} (much more needed)
- Remove `@param p1 ...` stubs, which appear in the generated docss.
- But, retainsed `@param p1` stubs, assuming they will be filtered from
the generated docs by SI-5795.
- Avoid use of the shorthand `@param doc for the solitary param`
(which works, but isn't recognized by the code inspection in IntelliJ
I used to sweep through the problems)
The remaining warnings from `ant docs` seem spurious, I suspect they are
an unintended consequence of documenting extension methods.
[scaladoc] /Users/jason/code/scala/src/library/scala/collection/TraversableOnce.scala:181: warning: Variable coll undefined in comment for method reduceOption in class Tuple2Zipped
[scaladoc] def reduceOption[A1 >: A](op: (A1, A1) => A1): Option[A1] = reduceLeftOption(op)
[scaladoc] ^
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
All this stuff. I believe most of this is uncontroversial.
scala/util/Marshal.scala
scala/util/automata/BaseBerrySethi.scala
scala/util/automata/DetWordAutom.scala
scala/util/automata/Inclusion.scala
scala/util/automata/NondetWordAutom.scala
scala/util/automata/SubsetConstruction.scala
scala/util/automata/WordBerrySethi.scala
scala/util/grammar/HedgeRHS.scala
scala/util/grammar/TreeRHS.scala
scala/util/parsing/ast/AbstractSyntax.scala
scala/util/parsing/ast/Binders.scala
scala/util/parsing/combinator/testing/RegexTest.scala
scala/util/parsing/combinator/testing/Tester.scala
scala/util/parsing/input/Positional.scala
scala/util/regexp/Base.scala
scala/util/regexp/PointedHedgeExp.scala
scala/util/regexp/SyntaxError.scala
scala/util/regexp/WordExp.scala
I'd have deprecated much of it long ago if the compiler didn't
still depend on it due to xml/dtd/something. And it still does,
but it's time to deprecate them anyway.
|
|\
| |
| |
| | |
'refs/pull/532/head'; commit 'refs/pull/533/head'; commit 'refs/pull/534/head' into develop
|