Refactor: Use primitive integer type (#9310)

This commit is contained in:
DeepCrimson 2022-07-22 20:05:13 -07:00 committed by GitHub
parent 474aeb560a
commit 4e139c9878
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3325,7 +3325,7 @@ public abstract class GameImpl implements Game {
String[] s = command.getValue().split(":");
if (s.length == 2) {
try {
Integer amount = Integer.parseInt(s[1]);
int amount = Integer.parseInt(s[1]);
player.setLife(amount, this, null);
logger.debug("Setting player's life: ");
} catch (NumberFormatException e) {
@ -3747,7 +3747,7 @@ public abstract class GameImpl implements Game {
public boolean isGameStopped() {
return gameStopped;
}
@Override
public boolean isTurnOrderReversed() {
return state.getReverseTurnOrder();