squid:S2293 - The diamond operator should be used

This commit is contained in:
Mohammed Ezzat
2016-01-29 07:33:34 +02:00
parent 1a55f3a420
commit 409ff027b8
13 changed files with 17 additions and 17 deletions

View File

@ -52,7 +52,7 @@ public class App {
final Customer customer1 = new Customer(1, "Adam", "Adamson");
final Customer customer2 = new Customer(2, "Bob", "Bobson");
final Customer customer3 = new Customer(3, "Carl", "Carlson");
final List<Customer> customers = new ArrayList<Customer>();
final List<Customer> customers = new ArrayList<>();
customers.add(customer1);
customers.add(customer2);
customers.add(customer3);

View File

@ -18,7 +18,7 @@ public class CustomerDaoImplTest {
@Before
public void setUp() {
customers = new ArrayList<Customer>();
customers = new ArrayList<>();
customers.add(CUSTOMER);
impl = new CustomerDaoImpl(customers);
}