client: correctly use Runnables::doNothing

passing it as a method reference complete defeats the point of the
method as it desugars to:
option("foo", () ->
{
  Runnable unused = Runnables.doNothing();
});
This commit is contained in:
Max Weber
2021-06-11 03:18:35 -06:00
parent 2b5ea1f0b5
commit 074f1e0841
3 changed files with 4 additions and 4 deletions

View File

@@ -447,7 +447,7 @@ public class TabInterface
})
)
.option("2. Only tab", () -> clientThread.invoke(() -> deleteTab(target)))
.option("3. Cancel", Runnables::doNothing)
.option("3. Cancel", Runnables.doNothing())
.build();
break;
case Tab.EXPORT_TAB:

View File

@@ -809,7 +809,7 @@ public class ChatChannelPlugin extends Plugin
kickConfirmed = false;
})
)
.option("2. Cancel", Runnables::doNothing)
.option("2. Cancel", Runnables.doNothing())
.build();
}

View File

@@ -202,7 +202,7 @@ class GroundMarkerSharingManager
chatboxPanelManager.openTextMenuInput("Are you sure you want to import " + importPoints.size() + " ground markers?")
.option("Yes", () -> importGroundMarkers(importPoints))
.option("No", Runnables::doNothing)
.option("No", Runnables.doNothing())
.build();
}
@@ -275,7 +275,7 @@ class GroundMarkerSharingManager
+ (numActivePoints == 1 ? " was cleared." : "s were cleared."));
})
.option("No", Runnables::doNothing)
.option("No", Runnables.doNothing())
.build();
}