Skip to content

Commit 272cb87

Browse files
committed
local variable in var declaration
1 parent 1b130b1 commit 272cb87

File tree

1 file changed

+6
-6
lines changed
  • vertical-slice-architecture/src/main/java/com/iluwatar/verticalslicearchitecture

1 file changed

+6
-6
lines changed

Diff for: vertical-slice-architecture/src/main/java/com/iluwatar/verticalslicearchitecture/Runner.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,20 @@ public void run(String... args) {
6464

6565
public void initializeData() {
6666

67-
Customer customer = Customer.builder().id(1).name("sugan0tech").email("[email protected]").build();
67+
var customer = Customer.builder().id(1).name("sugan0tech").email("[email protected]").build();
6868
customerService.createCustomer(customer);
6969

70-
Product oreo = Product.builder().id(1).price(2.00).name("Oreo").build();
71-
Product cone = Product.builder().id(3).price(1.15).name("Ice Cream Cone").build();
72-
Product apple = Product.builder().id(4).price(2.00).name("Apple").build();
73-
Product sandwich = Product.builder().id(2).price(6.00).name("Sandwich").build();
70+
var oreo = Product.builder().id(1).price(2.00).name("Oreo").build();
71+
var cone = Product.builder().id(3).price(1.15).name("Ice Cream Cone").build();
72+
var apple = Product.builder().id(4).price(2.00).name("Apple").build();
73+
var sandwich = Product.builder().id(2).price(6.00).name("Sandwich").build();
7474
productService.createProduct(oreo);
7575
productService.createProduct(cone);
7676
productService.createProduct(apple);
7777
productService.createProduct(sandwich);
7878

7979
orderService.createOrder(1, customer, oreo);
80-
orderService.createOrder(2, customer, sandwich);
8180
orderService.createOrder(3, customer, apple);
81+
orderService.createOrder(2, customer, sandwich);
8282
}
8383
}

0 commit comments

Comments
 (0)