Replace explicit type arguments with diamond operator

This commit is contained in:
Vedran Pavic
2017-03-04 08:12:11 +01:00
committed by Rob Winch
parent 78ea101a43
commit 5b4d0c40d8
36 changed files with 91 additions and 94 deletions

View File

@@ -46,7 +46,7 @@ public class HomePage {
public HomePage(WebDriver driver) {
this.driver = driver;
this.attributes = new ArrayList<Attribute>();
this.attributes = new ArrayList<>();
}
private static void get(WebDriver driver, String get) {
@@ -64,7 +64,7 @@ public class HomePage {
}
public List<Attribute> attributes() {
List<Attribute> rows = new ArrayList<Attribute>();
List<Attribute> rows = new ArrayList<>();
for (WebElement tr : this.trs) {
rows.add(new Attribute(tr));
}