Use diamond operator
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 5 Jul 2015 20:11:09 +0000 (22:11 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 5 Jul 2015 20:11:09 +0000 (22:11 +0200)
src/test/java/net/pterodactylus/fcp/fake/TextSocket.java

index c85f346..7a0ea94 100644 (file)
@@ -46,7 +46,7 @@ class TextSocket implements Closeable {
        }
 
        public List<String> collectUntil(Matcher<String> lineMatcher) throws IOException {
-               List<String> collectedLines = new ArrayList<String>();
+               List<String> collectedLines = new ArrayList<>();
                while (true) {
                        String line = readLine();
                        if (line == null) {