JAVA-4611: Update deprecations in spring-boot-rest module

This commit is contained in:
sampadawagde
2021-02-23 22:36:42 +05:30
parent f6470356d2
commit 9d7a90cab9
4 changed files with 4 additions and 6 deletions
@@ -50,7 +50,7 @@ public class CustomerController {
}
Link link = linkTo(methodOn(CustomerController.class).getOrdersForCustomer(customerId)).withSelfRel();
CollectionModel<Order> result = new CollectionModel<>(orders, link);
CollectionModel<Order> result = CollectionModel.of(orders, link);
return result;
}
@@ -72,7 +72,7 @@ public class CustomerController {
}
Link link = linkTo(CustomerController.class).withSelfRel();
CollectionModel<Customer> result = new CollectionModel<>(allCustomers, link);
CollectionModel<Customer> result = CollectionModel.of(allCustomers, link);
return result;
}