Skip to content

Commit e994c89

Browse files
author
Martijn Hoekstra
committed
remove redundant final modifiers
1 parent a9f1695 commit e994c89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private final class IdentityPreservingBuilder[A, CC[X] <: TraversableOnce[X]](th
3333
ruined = true
3434
}
3535

36-
final override def ++=(elems: TraversableOnce[A]): this.type =
36+
override def ++=(elems: TraversableOnce[A]): this.type =
3737
elems match {
3838
case ct(ca) if (collection == null && !ruined) => {
3939
collection = ca
@@ -46,19 +46,19 @@ private final class IdentityPreservingBuilder[A, CC[X] <: TraversableOnce[X]](th
4646
}
4747
}
4848

49-
final def +=(elem: A): this.type = {
49+
def +=(elem: A): this.type = {
5050
ruin()
5151
that += elem
5252
this
5353
}
5454

55-
final def clear(): Unit = {
55+
def clear(): Unit = {
5656
collection = null.asInstanceOf[CC[A]]
5757
if (ruined) that.clear()
5858
ruined = false
5959
}
6060

61-
final def result(): CC[A] = if(collection == null) that.result() else collection
61+
def result(): CC[A] = if(collection == null) that.result() else collection
6262
}
6363

6464
private[compat] object CompatImpl {

0 commit comments

Comments
 (0)