Skip to content

Commit 4ebbc31

Browse files
authored
Merge pull request #32 from lrytz/cleanups
Minor cleanups
2 parents a4c5413 + f71cafc commit 4ebbc31

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

admin/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ To configure tag driven releases from Travis CI.
1414
Ensure that `RELEASE_COMBO` is `true` for build matrix combinations
1515
that should be released to sonatype (when building a tag).
1616

17-
1817
It is important to add comments in `.travis.yml` to identify the name
1918
of each environment variable encoded in a `secure` section.
2019

@@ -41,7 +40,7 @@ env:
4140
- secure: "XXXXXX"
4241
4342
script:
44-
- if [[ "$TRAVIS_JDK_VERSION" == "openjdk6" && "$TRAVIS_SCALA_VERSION" =~ "2\.11.*" || "$TRAVIS_JDK_VERSION" == "openjdk6" && "$TRAVIS_SCALA_VERSION" =~ "2\.12.*" ]]; then export RELEASE_COMBO=true; fi
43+
- if [[ "$TRAVIS_JDK_VERSION" == "openjdk6" && "$TRAVIS_SCALA_VERSION" =~ 2\.11\..* || "$TRAVIS_JDK_VERSION" == "oraclejdk8" && "$TRAVIS_SCALA_VERSION" =~ 2\.1[23]\..* ]]; then export RELEASE_COMBO=true; fi
4544
- admin/build.sh
4645
4746
notifications:

src/main/scala-2.11_2.12/scala/collection/compat/BuildFrom.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait BuildFrom[-From, -A, +C] extends Any {
1818
* Building collections with `fromSpecificIterable` is preferred because it can be lazy for lazy collections. */
1919
def newBuilder(from: From): mutable.Builder[A, C]
2020

21-
@deprecated("Use newBuilder() instead of apply()", "2.13.0")
21+
@deprecated("Use newBuilder instead of apply()", "2.13.0")
2222
@`inline` def apply(from: From): mutable.Builder[A, C] = newBuilder(from)
2323

2424
}

src/main/scala-2.11_2.12/scala/collection/compat/Factory.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ trait Factory[-A, +C] extends Any {
2020

2121
/** Get a Builder for the collection. For non-strict collection types this will use an intermediate buffer.
2222
* Building collections with `fromSpecific` is preferred because it can be lazy for lazy collections. */
23-
def newBuilder(): mutable.Builder[A, C]
23+
def newBuilder: mutable.Builder[A, C]
2424
}
2525

2626
object Factory {
2727

2828
implicit def fromCanBuildFrom[A, C](implicit cbf: CanBuildFrom[Nothing, A, C]): Factory[A, C] =
2929
new Factory[A, C] {
3030
def fromSpecific(it: TraversableOnce[A]): C = (cbf() ++= it).result()
31-
def newBuilder(): mutable.Builder[A, C] = cbf()
31+
def newBuilder: mutable.Builder[A, C] = cbf()
3232
}
3333

3434
implicit def fromCanBuildFromConversion[X, A, C](x: X)(implicit toCanBuildFrom: X => CanBuildFrom[Nothing, A, C]): Factory[A, C] =

0 commit comments

Comments
 (0)