~jan0sch/smederee

Showing details for patch 8ca20b985ee6deb709c3c0f6339d3391595c545f.
2023-03-18 (Sat), 7:48 AM - Jens Grassel - 8ca20b985ee6deb709c3c0f6339d3391595c545f

Fix scalafix issues with the MarkdownRenderer

Summary of changes
1 files modified with 1 lines added and 0 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/MarkdownRenderer.scala with 1 added and 0 removed lines
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/hub/MarkdownRenderer.scala new-smederee/modules/hub/src/main/scala/de/smederee/hub/MarkdownRenderer.scala
--- old-smederee/modules/hub/src/main/scala/de/smederee/hub/MarkdownRenderer.scala	2025-01-31 10:45:09.030833031 +0000
+++ new-smederee/modules/hub/src/main/scala/de/smederee/hub/MarkdownRenderer.scala	2025-01-31 10:45:09.034833038 +0000
@@ -110,6 +110,7 @@
 
     override def getNodeTypes(): java.util.Set[Class[? <: Node]] = Set(classOf[Text]).asJava
 
+    @SuppressWarnings(Array("scalafix:DisableSyntax.null", "scalafix:DisableSyntax.asInstanceOf"))
     override def render(node: Node): Unit = {
       val text = node.asInstanceOf[Text] // We only receive text nodes (see `getNodeTypes`).
       isToDoItem.findFirstMatchIn(text.getLiteral()) match {