mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
Micro performance improvements
This commit is contained in:
@@ -64,7 +64,6 @@ public enum TicTacToeServerCommand {
|
|||||||
*/
|
*/
|
||||||
public static TicTacToeServerCommand getCommand(String command) {
|
public static TicTacToeServerCommand getCommand(String command) {
|
||||||
if (isValid(command)) {
|
if (isValid(command)) {
|
||||||
TicTacToeServerCommand.valueOf(command.toUpperCase());
|
|
||||||
return TicTacToeServerCommand.valueOf(command.toUpperCase());
|
return TicTacToeServerCommand.valueOf(command.toUpperCase());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ public enum TicTacToeServerMessage {
|
|||||||
*/
|
*/
|
||||||
public static TicTacToeServerMessage getCommand(String command) {
|
public static TicTacToeServerMessage getCommand(String command) {
|
||||||
if (isValid(command)) {
|
if (isValid(command)) {
|
||||||
TicTacToeServerMessage.valueOf(command.toUpperCase());
|
|
||||||
return TicTacToeServerMessage.valueOf(command.toUpperCase());
|
return TicTacToeServerMessage.valueOf(command.toUpperCase());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user