tuned: fewer warnings in IntelliJ IDEA;
authorwenzelm
Sat, 02 Nov 2024 15:28:17 +0100
changeset 81311 ea3cae90f76b
parent 81310 e3b0c7aec1ed
child 81312 a00d4d50b851
tuned: fewer warnings in IntelliJ IDEA;
src/Tools/jEdit/src/debugger_dockable.scala
--- a/src/Tools/jEdit/src/debugger_dockable.scala	Sat Nov 02 15:22:50 2024 +0100
+++ b/src/Tools/jEdit/src/debugger_dockable.scala	Sat Nov 02 15:28:17 2024 +0100
@@ -179,22 +179,22 @@
 
   private val continue_button = new GUI.Button("Continue") {
     tooltip = "Continue program on current thread, until next breakpoint"
-    override def clicked(): Unit = thread_selection().map(debugger.continue)
+    override def clicked(): Unit = thread_selection().foreach(debugger.continue)
   }
 
   private val step_button = new GUI.Button("Step") {
     tooltip = "Single-step in depth-first order"
-    override def clicked(): Unit = thread_selection().map(debugger.step)
+    override def clicked(): Unit = thread_selection().foreach(debugger.step)
   }
 
   private val step_over_button = new GUI.Button("Step over") {
     tooltip = "Single-step within this function"
-    override def clicked(): Unit = thread_selection().map(debugger.step_over)
+    override def clicked(): Unit = thread_selection().foreach(debugger.step_over)
   }
 
   private val step_out_button = new GUI.Button("Step out") {
     tooltip = "Single-step outside this function"
-    override def clicked(): Unit = thread_selection().map(debugger.step_out)
+    override def clicked(): Unit = thread_selection().foreach(debugger.step_out)
   }
 
   private val context_label = new Label("Context:") {