Skip to content

Commit 4f3f869

Browse files
author
Roman Janusz
committed
fix for shadowing JDK17 Record
1 parent b0f9db4 commit 4f3f869

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

commons-redis/src/main/scala/com/avsystem/commons/redis/commands/ReplyDecoders.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ object ReplyDecoders {
309309
val multiBulkAsXGroupInfo: ReplyDecoder[XGroupInfo] =
310310
flatMultiBulkAsMap(bulkAsUTF8, undecoded).andThen(XGroupInfo)
311311

312-
def multiBulkAsXStreamInfoOf[Record: RedisRecordCodec]: ReplyDecoder[XStreamInfo[Record]] =
313-
flatMultiBulkAsMap(bulkAsUTF8, undecoded).andThen(XStreamInfo[Record](_))
312+
def multiBulkAsXStreamInfoOf[Rec: RedisRecordCodec]: ReplyDecoder[XStreamInfo[Rec]] =
313+
flatMultiBulkAsMap(bulkAsUTF8, undecoded).andThen(XStreamInfo[Rec](_))
314314

315315
def multiBulkAsGroupedSeq[T](size: Int, elementDecoder: ReplyDecoder[T]): ReplyDecoder[Seq[Seq[T]]] = {
316316
case ArrayMsg(elements) =>

commons-redis/src/main/scala/com/avsystem/commons/redis/commands/streams.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,12 @@ case class XConsumerInfo(raw: BMap[String, ValidRedisMsg]) {
447447
def idle: Long = integerAsLong(raw("idle"))
448448
}
449449

450-
case class XStreamInfo[Record: RedisRecordCodec](raw: BMap[String, ValidRedisMsg]) {
450+
case class XStreamInfo[Rec: RedisRecordCodec](raw: BMap[String, ValidRedisMsg]) {
451451
def length: Long = integerAsLong(raw("length"))
452452
def radixTreeKeys: Int = integerAsInt(raw("radis-tree-keys"))
453453
def radixTreeNodes: Int = integerAsInt(raw("radis-tree-nodes"))
454454
def groups: Int = integerAsInt(raw("groups"))
455455
def lastGeneratedId: XEntryId = bulkAsXEntryId(raw("last-generated-id"))
456-
def firstEntry: XEntry[Record] = multiBulkAsXEntryOf[Record].apply(raw("first-entry"))
457-
def lastEntry: XEntry[Record] = multiBulkAsXEntryOf[Record].apply(raw("last-entry"))
456+
def firstEntry: XEntry[Rec] = multiBulkAsXEntryOf[Rec].apply(raw("first-entry"))
457+
def lastEntry: XEntry[Rec] = multiBulkAsXEntryOf[Rec].apply(raw("last-entry"))
458458
}

0 commit comments

Comments
 (0)