stevedlawrence commented on code in PR #1433:
URL: https://github.com/apache/daffodil/pull/1433#discussion_r1956182450


##########
daffodil-runtime1/src/main/scala/org/apache/daffodil/runtime1/debugger/InteractiveDebugger.scala:
##########
@@ -1663,9 +1663,9 @@ class InteractiveDebugger(
         val desc = "display differences since the previous pause in the 
debugger"
         val longDesc = desc
 
-        lazy val infoDiffables = Info.subcommands.collect { case diffable: 
InfoDiffable =>
-          diffable
-        }
+        lazy val infoDiffables = Info.subcommands
+          .filter(_.isInstanceOf[InfoDiffable])
+          .map(_.asInstanceOf[InfoDiffable])

Review Comment:
   This seems like worse syntax, does scala not support this use of `collect` 
anymore?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to