From 42e77f1da02713f1c5d7cc737d5d852874af0f91 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 27 Nov 2016 04:06:49 +0100 Subject: [PATCH] Correction des warning de Eclipse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Des types génériques étaient déclarés de façon redondante. --- src/main/java/fr/pandacube/java/logviewer/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/pandacube/java/logviewer/Main.java b/src/main/java/fr/pandacube/java/logviewer/Main.java index 7790e77..d959bd0 100644 --- a/src/main/java/fr/pandacube/java/logviewer/Main.java +++ b/src/main/java/fr/pandacube/java/logviewer/Main.java @@ -37,7 +37,7 @@ public class Main { return; } - CircularFifoQueue lineBuffer = new CircularFifoQueue(100); + CircularFifoQueue lineBuffer = new CircularFifoQueue<>(100); @@ -102,7 +102,7 @@ public class Main { public static String readUTF8LineFromFile(RandomAccessFile reader) { - List bytes = new ArrayList(); + List bytes = new ArrayList<>(); byte b; try {