diff options
author | Artur Signell <artur@vaadin.com> | 2016-09-05 12:33:39 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2016-09-05 10:02:48 +0000 |
commit | 504b3c4c65c6a2ccfeeb1501eff7a29f5a3dbec3 (patch) | |
tree | e65c1813439a25bbab6c81e71c27ba8ccf69970b /all | |
parent | 6941d683eb15a8ae10e0d302bcf9608be8825f8a (diff) | |
download | vaadin-framework-504b3c4c65c6a2ccfeeb1501eff7a29f5a3dbec3.tar.gz vaadin-framework-504b3c4c65c6a2ccfeeb1501eff7a29f5a3dbec3.zip |
Use diamond operator where it can be used
Does not modify compatibility packages to keep to closer to Vaadin 7.7
Change-Id: Ic9c4944eb90218290545a04ecd7455eb63910012
Diffstat (limited to 'all')
-rw-r--r-- | all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java | 2 | ||||
-rw-r--r-- | all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java b/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java index 5d92b499fe..72c10e892f 100644 --- a/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java +++ b/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java @@ -56,7 +56,7 @@ public class FetchReleaseNotesAuthors { new InputStreamReader(p.getInputStream())); String line = ""; - List<String> authors = new ArrayList<String>(); + List<String> authors = new ArrayList<>(); while ((line = b.readLine()) != null) { String author = line; if (authorMap.containsKey(author)) { diff --git a/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java b/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java index 9f51bbf47f..7865770be8 100644 --- a/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java +++ b/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java @@ -39,7 +39,7 @@ public class FetchReleaseNotesTickets { } String milestone = ""; - List<String> versions = new ArrayList<String>(); + List<String> versions = new ArrayList<>(); for (String version : versionsProperty.split(" ")) { if (version.endsWith(".0") || version.matches(".*\\.rc\\d+")) { // Find all prerelease versions for final or rc @@ -63,7 +63,7 @@ public class FetchReleaseNotesTickets { } private static List<String> findPrereleaseVersions(String baseVersion) { - List<String> versions = new ArrayList<String>(); + List<String> versions = new ArrayList<>(); for (int i = 0; i < 50; i++) { versions.add(baseVersion + ".alpha" + i); |