Skip to content

Commit

Permalink
use _ not ?
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsimpson committed May 24, 2024
1 parent 7552be3 commit 8ebbece
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private[kafka] object RecordProcessor {
* KafkaConsumer which versions < 2.5 relies on internal groupId: String and higher versions in Optional[String].
*/
private def resolve(groupId: AnyRef): Option[String] = groupId match {
case opt: Optional[?] =>
case opt: Optional[_] =>
if (opt.isPresent) opt.get() match {
case s: String => Some(s)
case meta: ConsumerGroupMetadata => Some(meta.groupId())
Expand Down

0 comments on commit 8ebbece

Please sign in to comment.