Cleanup and format code
This commit is contained in:
@@ -28,7 +28,7 @@ public class Snake {
|
||||
|
||||
private static final int DEFAULT_LENGTH = 5;
|
||||
|
||||
private final Deque<Location> tail = new ArrayDeque<Location>();
|
||||
private final Deque<Location> tail = new ArrayDeque<>();
|
||||
|
||||
private final Object monitor = new Object();
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ public class SnakeTimer {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(SnakeTimer.class);
|
||||
|
||||
private static final ConcurrentHashMap<Integer, Snake> snakes = new ConcurrentHashMap<Integer, Snake>();
|
||||
private static final ConcurrentHashMap<Integer, Snake> snakes = new ConcurrentHashMap<>();
|
||||
|
||||
private static Timer gameTimer = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user