Skip to content

Commit 502e3c6

Browse files
authored
Merge pull request scala#5618 from monkey-mas/fix-indent-of-arrayops-2016-12-28
Fix indent and comment of ArrayOps.scala
2 parents 1452183 + 5340e88 commit 502e3c6

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

src/library/scala/collection/mutable/ArrayOps.scala

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ sealed trait ArrayOps[T] extends Any with ArrayLike[T, Array[T]] with CustomPara
177177
(a1, a2, a3)
178178
}
179179

180-
181180
def seq = thisCollection
182-
183181
}
184182

185183
/**
@@ -189,7 +187,7 @@ sealed trait ArrayOps[T] extends Any with ArrayLike[T, Array[T]] with CustomPara
189187
*/
190188
object ArrayOps {
191189

192-
/** A class of `ArrayOps` for arrays containing reference types. */
190+
/** A subclass of `ArrayOps` for arrays containing reference types. */
193191
final class ofRef[T <: AnyRef](override val repr: Array[T]) extends AnyVal with ArrayOps[T] with ArrayLike[T, Array[T]] {
194192

195193
override protected[this] def thisCollection: WrappedArray[T] = new WrappedArray.ofRef[T](repr)
@@ -201,8 +199,8 @@ object ArrayOps {
201199
def update(index: Int, elem: T) { repr(index) = elem }
202200
}
203201

204-
/** A class of `ArrayOps` for arrays containing `byte`s. */
205-
final class ofByte(override val repr: Array[Byte]) extends AnyVal with ArrayOps[Byte] with ArrayLike[Byte, Array[Byte]] {
202+
/** A subclass of `ArrayOps` for arrays containing `Byte`s. */
203+
final class ofByte(override val repr: Array[Byte]) extends AnyVal with ArrayOps[Byte] with ArrayLike[Byte, Array[Byte]] {
206204

207205
override protected[this] def thisCollection: WrappedArray[Byte] = new WrappedArray.ofByte(repr)
208206
override protected[this] def toCollection(repr: Array[Byte]): WrappedArray[Byte] = new WrappedArray.ofByte(repr)
@@ -213,8 +211,8 @@ final class ofByte(override val repr: Array[Byte]) extends AnyVal with ArrayOps[
213211
def update(index: Int, elem: Byte) { repr(index) = elem }
214212
}
215213

216-
/** A class of `ArrayOps` for arrays containing `short`s. */
217-
final class ofShort(override val repr: Array[Short]) extends AnyVal with ArrayOps[Short] with ArrayLike[Short, Array[Short]] {
214+
/** A subclass of `ArrayOps` for arrays containing `Short`s. */
215+
final class ofShort(override val repr: Array[Short]) extends AnyVal with ArrayOps[Short] with ArrayLike[Short, Array[Short]] {
218216

219217
override protected[this] def thisCollection: WrappedArray[Short] = new WrappedArray.ofShort(repr)
220218
override protected[this] def toCollection(repr: Array[Short]): WrappedArray[Short] = new WrappedArray.ofShort(repr)
@@ -225,8 +223,8 @@ final class ofShort(override val repr: Array[Short]) extends AnyVal with ArrayOp
225223
def update(index: Int, elem: Short) { repr(index) = elem }
226224
}
227225

228-
/** A class of `ArrayOps` for arrays containing `char`s. */
229-
final class ofChar(override val repr: Array[Char]) extends AnyVal with ArrayOps[Char] with ArrayLike[Char, Array[Char]] {
226+
/** A subclass of `ArrayOps` for arrays containing `Char`s. */
227+
final class ofChar(override val repr: Array[Char]) extends AnyVal with ArrayOps[Char] with ArrayLike[Char, Array[Char]] {
230228

231229
override protected[this] def thisCollection: WrappedArray[Char] = new WrappedArray.ofChar(repr)
232230
override protected[this] def toCollection(repr: Array[Char]): WrappedArray[Char] = new WrappedArray.ofChar(repr)
@@ -237,8 +235,8 @@ final class ofChar(override val repr: Array[Char]) extends AnyVal with ArrayOps[
237235
def update(index: Int, elem: Char) { repr(index) = elem }
238236
}
239237

240-
/** A class of `ArrayOps` for arrays containing `int`s. */
241-
final class ofInt(override val repr: Array[Int]) extends AnyVal with ArrayOps[Int] with ArrayLike[Int, Array[Int]] {
238+
/** A subclass of `ArrayOps` for arrays containing `Int`s. */
239+
final class ofInt(override val repr: Array[Int]) extends AnyVal with ArrayOps[Int] with ArrayLike[Int, Array[Int]] {
242240

243241
override protected[this] def thisCollection: WrappedArray[Int] = new WrappedArray.ofInt(repr)
244242
override protected[this] def toCollection(repr: Array[Int]): WrappedArray[Int] = new WrappedArray.ofInt(repr)
@@ -249,8 +247,8 @@ final class ofInt(override val repr: Array[Int]) extends AnyVal with ArrayOps[In
249247
def update(index: Int, elem: Int) { repr(index) = elem }
250248
}
251249

252-
/** A class of `ArrayOps` for arrays containing `long`s. */
253-
final class ofLong(override val repr: Array[Long]) extends AnyVal with ArrayOps[Long] with ArrayLike[Long, Array[Long]] {
250+
/** A subclass of `ArrayOps` for arrays containing `Long`s. */
251+
final class ofLong(override val repr: Array[Long]) extends AnyVal with ArrayOps[Long] with ArrayLike[Long, Array[Long]] {
254252

255253
override protected[this] def thisCollection: WrappedArray[Long] = new WrappedArray.ofLong(repr)
256254
override protected[this] def toCollection(repr: Array[Long]): WrappedArray[Long] = new WrappedArray.ofLong(repr)
@@ -261,8 +259,8 @@ final class ofLong(override val repr: Array[Long]) extends AnyVal with ArrayOps[
261259
def update(index: Int, elem: Long) { repr(index) = elem }
262260
}
263261

264-
/** A class of `ArrayOps` for arrays containing `float`s. */
265-
final class ofFloat(override val repr: Array[Float]) extends AnyVal with ArrayOps[Float] with ArrayLike[Float, Array[Float]] {
262+
/** A subclass of `ArrayOps` for arrays containing `Float`s. */
263+
final class ofFloat(override val repr: Array[Float]) extends AnyVal with ArrayOps[Float] with ArrayLike[Float, Array[Float]] {
266264

267265
override protected[this] def thisCollection: WrappedArray[Float] = new WrappedArray.ofFloat(repr)
268266
override protected[this] def toCollection(repr: Array[Float]): WrappedArray[Float] = new WrappedArray.ofFloat(repr)
@@ -273,8 +271,8 @@ final class ofFloat(override val repr: Array[Float]) extends AnyVal with ArrayOp
273271
def update(index: Int, elem: Float) { repr(index) = elem }
274272
}
275273

276-
/** A class of `ArrayOps` for arrays containing `double`s. */
277-
final class ofDouble(override val repr: Array[Double]) extends AnyVal with ArrayOps[Double] with ArrayLike[Double, Array[Double]] {
274+
/** A subclass of `ArrayOps` for arrays containing `Double`s. */
275+
final class ofDouble(override val repr: Array[Double]) extends AnyVal with ArrayOps[Double] with ArrayLike[Double, Array[Double]] {
278276

279277
override protected[this] def thisCollection: WrappedArray[Double] = new WrappedArray.ofDouble(repr)
280278
override protected[this] def toCollection(repr: Array[Double]): WrappedArray[Double] = new WrappedArray.ofDouble(repr)
@@ -285,8 +283,8 @@ final class ofDouble(override val repr: Array[Double]) extends AnyVal with Array
285283
def update(index: Int, elem: Double) { repr(index) = elem }
286284
}
287285

288-
/** A class of `ArrayOps` for arrays containing `boolean`s. */
289-
final class ofBoolean(override val repr: Array[Boolean]) extends AnyVal with ArrayOps[Boolean] with ArrayLike[Boolean, Array[Boolean]] {
286+
/** A subclass of `ArrayOps` for arrays containing `Boolean`s. */
287+
final class ofBoolean(override val repr: Array[Boolean]) extends AnyVal with ArrayOps[Boolean] with ArrayLike[Boolean, Array[Boolean]] {
290288

291289
override protected[this] def thisCollection: WrappedArray[Boolean] = new WrappedArray.ofBoolean(repr)
292290
override protected[this] def toCollection(repr: Array[Boolean]): WrappedArray[Boolean] = new WrappedArray.ofBoolean(repr)
@@ -297,8 +295,8 @@ final class ofBoolean(override val repr: Array[Boolean]) extends AnyVal with Arr
297295
def update(index: Int, elem: Boolean) { repr(index) = elem }
298296
}
299297

300-
/** A class of `ArrayOps` for arrays of `Unit` types. */
301-
final class ofUnit(override val repr: Array[Unit]) extends AnyVal with ArrayOps[Unit] with ArrayLike[Unit, Array[Unit]] {
298+
/** A subclass of `ArrayOps` for arrays of `Unit` types. */
299+
final class ofUnit(override val repr: Array[Unit]) extends AnyVal with ArrayOps[Unit] with ArrayLike[Unit, Array[Unit]] {
302300

303301
override protected[this] def thisCollection: WrappedArray[Unit] = new WrappedArray.ofUnit(repr)
304302
override protected[this] def toCollection(repr: Array[Unit]): WrappedArray[Unit] = new WrappedArray.ofUnit(repr)

0 commit comments

Comments
 (0)