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 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;
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ public class SampleWebSocketsApplicationTests {
|
||||
|
||||
private final CountDownLatch latch = new CountDownLatch(1);
|
||||
|
||||
private final AtomicReference<String> messagePayload = new AtomicReference<String>();
|
||||
private final AtomicReference<String> messagePayload = new AtomicReference<>();
|
||||
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
|
||||
@@ -109,7 +109,7 @@ public class CustomContainerWebSocketsApplicationTests {
|
||||
|
||||
private final CountDownLatch latch = new CountDownLatch(1);
|
||||
|
||||
private final AtomicReference<String> messagePayload = new AtomicReference<String>();
|
||||
private final AtomicReference<String> messagePayload = new AtomicReference<>();
|
||||
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user