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:
@@ -447,7 +447,7 @@ public class TabInterface
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
.option("2. Only tab", () -> clientThread.invoke(() -> deleteTab(target)))
|
.option("2. Only tab", () -> clientThread.invoke(() -> deleteTab(target)))
|
||||||
.option("3. Cancel", Runnables::doNothing)
|
.option("3. Cancel", Runnables.doNothing())
|
||||||
.build();
|
.build();
|
||||||
break;
|
break;
|
||||||
case Tab.EXPORT_TAB:
|
case Tab.EXPORT_TAB:
|
||||||
|
|||||||
@@ -809,7 +809,7 @@ public class ChatChannelPlugin extends Plugin
|
|||||||
kickConfirmed = false;
|
kickConfirmed = false;
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.option("2. Cancel", Runnables::doNothing)
|
.option("2. Cancel", Runnables.doNothing())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ class GroundMarkerSharingManager
|
|||||||
|
|
||||||
chatboxPanelManager.openTextMenuInput("Are you sure you want to import " + importPoints.size() + " ground markers?")
|
chatboxPanelManager.openTextMenuInput("Are you sure you want to import " + importPoints.size() + " ground markers?")
|
||||||
.option("Yes", () -> importGroundMarkers(importPoints))
|
.option("Yes", () -> importGroundMarkers(importPoints))
|
||||||
.option("No", Runnables::doNothing)
|
.option("No", Runnables.doNothing())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,7 +275,7 @@ class GroundMarkerSharingManager
|
|||||||
+ (numActivePoints == 1 ? " was cleared." : "s were cleared."));
|
+ (numActivePoints == 1 ? " was cleared." : "s were cleared."));
|
||||||
|
|
||||||
})
|
})
|
||||||
.option("No", Runnables::doNothing)
|
.option("No", Runnables.doNothing())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user