Skip to content

Commit a072237

Browse files
som-snyttlrytz
authored andcommitted
Improvements
1 parent 7ab88fd commit a072237

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library/src/scala/Array.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ object Array {
204204

205205
/** Creates an array of `Boolean` objects */
206206
// Subject to a compiler optimization in Cleanup, see above.
207-
def apply(@deprecatedName x: Boolean, xs: Boolean*): Array[Boolean] = {
207+
def apply(x: Boolean, xs: Boolean*): Array[Boolean] = {
208208
val array = new Array[Boolean](xs.length + 1)
209209
array(0) = x
210210
val iterator = xs.iterator

library/src/scala/Predef.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ object Predef extends LowPriorityImplicits {
259259
* @group assertions
260260
*/
261261
@elidable(ASSERTION)
262-
def assert(@deprecatedName assertion: Boolean): Unit = {
262+
def assert(assertion: Boolean): Unit = {
263263
if (!assertion)
264264
throw new java.lang.AssertionError("assertion failed")
265265
}
@@ -274,7 +274,7 @@ object Predef extends LowPriorityImplicits {
274274
* @group assertions
275275
*/
276276
@elidable(ASSERTION) @inline
277-
final def assert(@deprecatedName assertion: Boolean, message: => Any): Unit = {
277+
final def assert(assertion: Boolean, message: => Any): Unit = {
278278
if (!assertion)
279279
throw new java.lang.AssertionError("assertion failed: "+ message)
280280
}

library/src/scala/collection/Iterator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ trait Iterator[+A] extends IterableOnce[A] with IterableOnceOps[A, Iterator, Ite
207207
* @note This method is mutually exclusive with `withPadding`.
208208
* @group Configuration
209209
*/
210-
def withPartial(@deprecatedName x: Boolean): this.type = {
210+
def withPartial(x: Boolean): this.type = {
211211
partial = x
212212
padding = null
213213
this

0 commit comments

Comments
 (0)