Skip to content

Commit 05e1904

Browse files
authored
Rename CaseClassReadereader (#604)
This was a copy-paste or find-replace screwup, now that we're breaking compat in upickle 4.x we can fix it
1 parent 04b6d21 commit 05e1904

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

upickle/implicits/src-3/upickle/implicits/Readers.scala

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ trait ReadersVersionSpecific
1212
with Annotator
1313
with CaseClassReadWriters:
1414

15-
abstract class CaseClassReadereader[T](paramCount: Int,
16-
missingKeyCount: Long,
17-
allowUnknownKeys: Boolean) extends CaseClassReader[T] {
18-
// Bincompat stub
19-
def this(paramCount: Int, missingKeyCount: Long) = this(paramCount, missingKeyCount, true)
20-
15+
abstract class CaseClassReader3[T](paramCount: Int,
16+
missingKeyCount: Long,
17+
allowUnknownKeys: Boolean) extends CaseClassReader[T] {
2118
def visitors0: Product
2219
lazy val visitors = visitors0
2320
def fromProduct(p: Product): T
@@ -63,7 +60,7 @@ trait ReadersVersionSpecific
6360

6461
inline def macroR[T](using m: Mirror.Of[T]): Reader[T] = inline m match {
6562
case m: Mirror.ProductOf[T] =>
66-
val reader = new CaseClassReadereader[T](
63+
val reader = new CaseClassReader3[T](
6764
macros.paramsCount[T],
6865
macros.checkErrorMissingKeysCount[T](),
6966
macros.extractIgnoreUnknownKeys[T]().headOption.getOrElse(this.allowUnknownKeys)

0 commit comments

Comments
 (0)