From 504b3c4c65c6a2ccfeeb1501eff7a29f5a3dbec3 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 5 Sep 2016 12:33:39 +0300 Subject: Use diamond operator where it can be used Does not modify compatibility packages to keep to closer to Vaadin 7.7 Change-Id: Ic9c4944eb90218290545a04ecd7455eb63910012 --- .../src/main/java/com/vaadin/buildhelpers/GeneratePackageExports.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buildhelpers') diff --git a/buildhelpers/src/main/java/com/vaadin/buildhelpers/GeneratePackageExports.java b/buildhelpers/src/main/java/com/vaadin/buildhelpers/GeneratePackageExports.java index 0db7609f69..9717c35353 100644 --- a/buildhelpers/src/main/java/com/vaadin/buildhelpers/GeneratePackageExports.java +++ b/buildhelpers/src/main/java/com/vaadin/buildhelpers/GeneratePackageExports.java @@ -62,7 +62,7 @@ public class GeneratePackageExports { } // Accepted packages - List acceptedPackagePrefixes = new ArrayList(); + List acceptedPackagePrefixes = new ArrayList<>(); for (int i = 1; i < args.length; i++) { acceptedPackagePrefixes.add(args[i]); } @@ -179,7 +179,7 @@ public class GeneratePackageExports { private static HashSet getPackages(JarFile jar, List acceptedPackagePrefixes, boolean includeNumberPackages) { - HashSet packages = new HashSet(); + HashSet packages = new HashSet<>(); Pattern startsWithNumber = Pattern.compile("\\.\\d"); -- cgit v1.2.3