Skip to content

Commit ceb2d14

Browse files
committed
Make productToArray private
1 parent 761f2a2 commit ceb2d14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/scala/runtime/Tuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object Tuple {
1616
case self: Product => productToArray(self).asInstanceOf[IArray[Object]]
1717
}
1818

19-
def productToArray(self: Product): Array[Object] = {
19+
private def productToArray(self: Product): Array[Object] = {
2020
val arr = new Array[Object](self.productArity)
2121
var i = 0
2222
while (i < arr.length) {

library/src/scala/util/FromDigits.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ object FromDigits {
156156
x
157157
}
158158

159-
given BigIntFromDigits as FromDigits.WithRadix[BigInt] {
159+
given BigIntFromDigits as WithRadix[BigInt] {
160160
def fromDigits(digits: String, radix: Int): BigInt = BigInt(digits, radix)
161161
}
162162

163-
given BigDecimalFromDigits as FromDigits.Floating[BigDecimal] {
163+
given BigDecimalFromDigits as Floating[BigDecimal] {
164164
def fromDigits(digits: String): BigDecimal = BigDecimal(digits)
165165
}
166166
}

0 commit comments

Comments
 (0)