mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-28 21:19:02 +00:00
Cleanup and format code
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ public class SnakeTimer {
|
||||
|
||||
private static final Log log = LogFactory.getLog(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