Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 0ff6c81

Browse files
committed
Improve method names (m-o)
1 parent 5b80736 commit 0ff6c81

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/compiler/scala/tools/nsc/typechecker/PatternTypers.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ trait PatternTypers {
305305
// clearing the type is necessary so that ref will be stabilized; see bug 881
306306
val fun1 = typedPos(fun.pos)(Apply(Select(fun.clearType(), unapplyMethod), unapplyArgTree :: Nil))
307307

308-
def makeTypedUnApply() = {
308+
def makeTypedUnapply() = {
309309
// the union of the expected type and the inferred type of the argument to unapply
310310
val glbType = glb(ensureFullyDefined(pt) :: unapplyArg.tpe_* :: Nil)
311311
val wrapInTypeTest = canRemedy && !(fun1.symbol.owner isNonBottomSubClass ClassTagClass)
@@ -325,7 +325,7 @@ trait PatternTypers {
325325
if (isBlackbox(unapplyMethod)) duplErrorTree(BlackboxExtractorExpansion(tree))
326326
else duplErrorTree(WrongShapeExtractorExpansion(tree))
327327
} else
328-
makeTypedUnApply()
328+
makeTypedUnapply()
329329
}
330330

331331
def wrapClassTagUnapply(uncheckedPattern: Tree, classTagExtractor: Tree, pt: Type): Tree = {

test/benchmarks/src/scala/collection/parallel/benchmarks/parallel_array/SequentialOps.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ trait SequentialOps[T] {
425425
}
426426

427427
def sequentialDiff(sq: Seq[T], sz: Int) = {
428-
val occmap = occurences(sq)
428+
val occmap = occurrences(sq)
429429
val b = new collection.mutable.ArrayBuffer[T]
430430

431431
var i = 0
@@ -442,7 +442,7 @@ trait SequentialOps[T] {
442442
}
443443

444444
def sequentialIntersect(sq: Seq[T], sz: Int) = {
445-
val occmap = occurences(sq)
445+
val occmap = occurrences(sq)
446446
val b = new collection.mutable.ArrayBuffer[T]
447447

448448
var i = 0
@@ -461,7 +461,7 @@ trait SequentialOps[T] {
461461
res
462462
}
463463

464-
private def occurences(sq: Seq[T]) = {
464+
private def occurrences(sq: Seq[T]) = {
465465
val occmap = new collection.mutable.HashMap[T, Int] { override def default(k: T) = 0 }
466466
for (elem <- sq.iterator) occmap(elem) += 1
467467
occmap

test/files/run/finally.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ body
2929
in finally
3030
java.lang.Exception
3131
----------------------------------------
32-
Running nestedFinalies
32+
Running nestedFinallyBlocks
3333
in finally 1
3434
in finally 2
3535
----------------------------------------

test/files/run/finally.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ object Test extends App {
9494
}
9595

9696
// nested finally blocks with return value
97-
def nestedFinalies: Int =
97+
def nestedFinallyBlocks: Int =
9898
try {
9999
try {
100100
return 10
@@ -123,5 +123,5 @@ object Test extends App {
123123
test(throwBody, "throwBody")
124124
test(retFinally, "retFinally")
125125
test(throwFinally, "throwFinally")
126-
test(nestedFinalies, "nestedFinalies")
126+
test(nestedFinallyBlocks, "nestedFinallyBlocks")
127127
}

0 commit comments

Comments
 (0)