Address idea warnings
This commit is contained in:
parent
9e971de6b0
commit
d91bb6dc02
|
@ -13,9 +13,7 @@ import static java.lang.Integer.parseInt;
|
|||
public class Main extends Entity {
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
Actor.convenientLogging();
|
||||
new Actor().daemonize().scheduleTurn(t -> {
|
||||
new Main(parseInt(args[0]), parseInt(args[1])).boot(t);
|
||||
});
|
||||
new Actor().daemonize().scheduleTurn(t -> new Main(parseInt(args[0]), parseInt(args[1])).boot(t));
|
||||
Actor.awaitAll();
|
||||
}
|
||||
|
||||
|
@ -54,7 +52,7 @@ public class Main extends Entity {
|
|||
|
||||
@Override
|
||||
public void message_(Turn turn, Object body) {
|
||||
if (body instanceof IForwarder.HandleMessage op) {
|
||||
if (body instanceof IForwarder.HandleMessage) {
|
||||
this._remainingToReceive--;
|
||||
if (this._remainingToReceive == 0) {
|
||||
double delta = (System.currentTimeMillis() - this._startTime) / 1000.0;
|
||||
|
|
Loading…
Reference in New Issue