From 0765e6243c9f6d3e5206442c509f0e60bbc1940a Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Fri, 2 Nov 2018 16:44:36 +0100 Subject: [PATCH] - warnings --- .../java/xyz/joethei/studium/algodat/DuplicatesList.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/xyz/joethei/studium/algodat/DuplicatesList.java b/src/main/java/xyz/joethei/studium/algodat/DuplicatesList.java index 7da02c3..eb82d3d 100644 --- a/src/main/java/xyz/joethei/studium/algodat/DuplicatesList.java +++ b/src/main/java/xyz/joethei/studium/algodat/DuplicatesList.java @@ -1,8 +1,8 @@ package xyz.joethei.studium.algodat; -import java.time.Instant; -import java.util.*; -import java.util.stream.Collectors; +import java.util.ArrayList; +import java.util.List; +import java.util.Random; public class DuplicatesList { @@ -19,7 +19,7 @@ public class DuplicatesList { } public static void main(String[] args) { - List list = new ArrayList(); + List list = new ArrayList<>(); Random random = new Random(); for (int i = 0; i < 10000; i++) { list.add(random.nextInt(10));