From 683c911cf803ea5d92712a9f0785d433bb90176c Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Thu, 16 Nov 2023 03:39:04 +0000 Subject: [PATCH] feat: removes unnecessay @Autowired --- META-INF/api-manifest.txt | 221 ++++++++++++++++++ .../choasmonkey/services/CustomerService.java | 2 - .../services/RestaurantService.java | 2 - .../web/controllers/RestaurantController.java | 2 - .../web/controllers/CustomerController.java | 2 - .../web/controllers/OrderController.java | 2 - .../services/PrimaryCustomerService.java | 2 - .../services/SecondaryCustomerService.java | 2 - .../db/services/CustomerService.java | 2 - .../web/controllers/CustomerController.java | 2 - r2dbc/boot-jooq-r2dbc-sample/pom.xml | 4 +- 11 files changed, 223 insertions(+), 20 deletions(-) create mode 100644 META-INF/api-manifest.txt diff --git a/META-INF/api-manifest.txt b/META-INF/api-manifest.txt new file mode 100644 index 000000000..2fdcc72db --- /dev/null +++ b/META-INF/api-manifest.txt @@ -0,0 +1,221 @@ +GET /api/customers +GET /api/customers/{id} +POST /api/customers +PUT /api/customers/{id} +DELETE /api/customers/{id} +GET /run-allCustomers-job +GET /api/clients +GET /api/clients/{id} +POST /api/clients +PUT /api/clients/{id} +DELETE /api/clients/{id} +GET /api/customers +GET /api/customers/{id} +POST /api/customers +PUT /api/customers/{id} +DELETE /api/customers/{id} +GET /api/restaurant +GET /api/restaurant/name/{restaurantName} +GET /api/restaurant/{restaurantId} +POST /api/restaurant/{restaurantId}/grade +GET /api/restaurant/total +PUT /api/restaurant/{restaurantId}/grades/ +POST /api/restaurant +GET /search/borough +GET /search/multi +GET /search/term/borough +GET /search/terms +GET /search/must/bool +GET /search/should/bool +GET /search/wildcard/borough +GET /search/regexp/borough +GET /search/simple +GET /search/restaurant/range +GET /search/date/range +GET /search/aggregate +GET /search/restaurant/withInRange +GET /api/restaurants +GET /api/restaurants/{id} +POST /api/restaurants +PUT /api/restaurants/{id} +DELETE /api/restaurants/{id} +GET /search/borough +GET /search/multi +GET /search/term/borough +GET /search/terms +GET /search/must/bool +GET /search/should/bool +GET /search/wildcard/borough +GET /search/regexp/borough +GET /search/simple +GET /search/restaurant/range +GET /search/date/range +GET /search/aggregate +GET /search/restaurant/withInRange +POST /sendMsg +GET /api/users +GET /api/users/{id} +POST /api/users +PUT /api/users/{id} +DELETE /api/users/{id} +GET /api/customers +GET /api/customers/{id} +POST /api/customers +PUT /api/customers/{id} +DELETE /api/customers/{id} +GET /api/posts/comments +GET /api/posts/comments/{id} +POST /api/posts/comments +PUT /api/posts/comments/{id} +DELETE /api/posts/comments/{id} +GET /api/posts +GET /api/posts/{id} +POST /api/posts +PUT /api/posts/{id} +DELETE /api/posts/{id} +GET /api/tags +GET /api/tags/{id} +POST /api/tags +PUT /api/tags/{id} +DELETE /api/tags/{id} +GET /api/authors +GET /api/authors/{id} +POST /api/authors +PUT /api/authors/{id} +DELETE /api/authors/{id} +GET /api/postcomments +GET /api/postcomments/{id} +POST /api/postcomments +PUT /api/postcomments/{id} +DELETE /api/postcomments/{id} +GET /api/posts +GET /api/posts/{id} +POST /api/posts +PUT /api/posts/{id} +DELETE /api/posts/{id} +GET /api/postdetails +GET /api/postdetails/{id} +PUT /api/postdetails/{id} +GET /api/tags +GET /api/tags/{id} +POST /api/tags +PUT /api/tags/{id} +DELETE /api/tags/{id} +GET /api/posts +GET /api/posts/{id} +POST /api/posts +PUT /api/posts/{id} +DELETE /api/posts/{id} +GET /api/posts +GET /api/posts/{id} +POST /api/posts +PUT /api/posts/{id} +DELETE /api/posts/{id} +GET /api/posts +GET /api/posts/{id} +POST /api/posts +PUT /api/posts/{id} +DELETE /api/posts/{id} +GET /api/posts +GET /api/posts/{id} +POST /api/posts +PUT /api/posts/{id} +DELETE /api/posts/{id} +GET /api/posts +GET /api/posts/{id} +POST /api/posts +PUT /api/posts/{id} +DELETE /api/posts/{id} +GET /api/customers +GET /api/customers/{id} +POST /api/customers +PUT /api/customers/{id} +DELETE /api/customers/{id} +GET /api/orders +GET /api/orders/{id} +POST /api/orders +PUT /api/orders/{id} +DELETE /api/orders/{id} +GET /api/customers +GET /api/customers/{id} +GET /api/customers/{id}/revisions +POST /api/customers +PUT /api/customers/{id} +DELETE /api/customers/{id} +GET /api/actors +POST /api/actors/search +GET /api/actors/{id} +POST /api/actors +PUT /api/actors/{id} +DELETE /api/actors/{id} +GET /details/{memberId} +GET /api/customers +GET /api/customers/{id} +GET /api/customers/search +POST /api/customers +PUT /api/customers/{id} +DELETE /api/customers/{id} +GET /api/orders +GET /api/orders/{id} +POST /api/orders +PUT /api/orders/{id} +DELETE /api/orders/{id} +GET /api/order/items +GET /api/order/items/{id} +POST /api/order/items +PUT /api/order/items/{id} +DELETE /api/order/items/{id} +GET /api/actors +GET /api/actors/{id} +POST /api/actors +PUT /api/actors/{id} +DELETE /api/actors/{id} +GET /api/movies +GET /api/movies/{id} +POST /api/movies +PUT /api/movies/{id} +DELETE /api/movies/{id} +GET /articles/{id} +POST /articles/ +GET /api/customers/primary +GET /api/customers/primary/{id} +POST /api/customers/primary +PUT /api/customers/primary/{id} +DELETE /api/customers/primary/{id} +GET /api/customers/secondary +GET /api/customers/secondary/{id} +POST /api/customers/secondary +PUT /api/customers/secondary/{id} +DELETE /api/customers/secondary/{id} +GET /api/customers +GET /api/customers/{id} +POST /api/customers +PUT /api/customers/{id} +DELETE /api/customers/{id} +GET /api/customers +GET /api/customers/{id} +POST /api/customers +PUT /api/customers/{id} +DELETE /api/customers/{id} +GET /api/customers +GET /api/customers/{id} +POST /api/customers +PUT /api/customers/{id} +DELETE /api/customers/{id} +GET /api/posts/comments/ +GET /api/posts/comments/{id} +POST /api/posts/comments/ +PUT /api/posts/comments/{id} +DELETE /api/posts/comments/{id} +GET /api/posts/ +GET /api/posts/{id} +GET /api/posts/{postId}/comments +POST /api/posts/ +PUT /api/posts/{id} +DELETE /api/posts/{id} +GET /index +GET /api +GET /api/statuses +POST /api/saveOrUpdate +POST /api/pauseJob +DELETE /api/deleteJob \ No newline at end of file diff --git a/boot-choas-monkey/src/main/java/com/example/choasmonkey/services/CustomerService.java b/boot-choas-monkey/src/main/java/com/example/choasmonkey/services/CustomerService.java index a018b4610..bec557ffe 100644 --- a/boot-choas-monkey/src/main/java/com/example/choasmonkey/services/CustomerService.java +++ b/boot-choas-monkey/src/main/java/com/example/choasmonkey/services/CustomerService.java @@ -5,7 +5,6 @@ import com.example.choasmonkey.repositories.CustomerRepository; import java.util.List; import java.util.Optional; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; @@ -19,7 +18,6 @@ public class CustomerService { private final CustomerRepository customerRepository; - @Autowired public CustomerService(CustomerRepository customerRepository) { this.customerRepository = customerRepository; } diff --git a/boot-opensearch-sample/src/main/java/com/example/opensearch/services/RestaurantService.java b/boot-opensearch-sample/src/main/java/com/example/opensearch/services/RestaurantService.java index 867592cea..c9c638c26 100644 --- a/boot-opensearch-sample/src/main/java/com/example/opensearch/services/RestaurantService.java +++ b/boot-opensearch-sample/src/main/java/com/example/opensearch/services/RestaurantService.java @@ -4,7 +4,6 @@ import com.example.opensearch.model.response.PagedResult; import com.example.opensearch.repositories.RestaurantRepository; import java.util.Optional; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; @@ -18,7 +17,6 @@ public class RestaurantService { private final RestaurantRepository restaurantRepository; - @Autowired public RestaurantService(RestaurantRepository restaurantRepository) { this.restaurantRepository = restaurantRepository; } diff --git a/boot-opensearch-sample/src/main/java/com/example/opensearch/web/controllers/RestaurantController.java b/boot-opensearch-sample/src/main/java/com/example/opensearch/web/controllers/RestaurantController.java index 162c13274..cd64f157f 100644 --- a/boot-opensearch-sample/src/main/java/com/example/opensearch/web/controllers/RestaurantController.java +++ b/boot-opensearch-sample/src/main/java/com/example/opensearch/web/controllers/RestaurantController.java @@ -5,7 +5,6 @@ import com.example.opensearch.model.response.PagedResult; import com.example.opensearch.services.RestaurantService; import com.example.opensearch.utils.AppConstants; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; @@ -26,7 +25,6 @@ public class RestaurantController { private final RestaurantService restaurantService; - @Autowired public RestaurantController(RestaurantService restaurantService) { this.restaurantService = restaurantService; } diff --git a/jpa/boot-data-customsequence/src/main/java/com/example/custom/sequence/web/controllers/CustomerController.java b/jpa/boot-data-customsequence/src/main/java/com/example/custom/sequence/web/controllers/CustomerController.java index dc943ff82..cb7318b75 100644 --- a/jpa/boot-data-customsequence/src/main/java/com/example/custom/sequence/web/controllers/CustomerController.java +++ b/jpa/boot-data-customsequence/src/main/java/com/example/custom/sequence/web/controllers/CustomerController.java @@ -7,7 +7,6 @@ import com.example.custom.sequence.utils.AppConstants; import com.example.custom.sequence.web.api.CustomerAPI; import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; @@ -29,7 +28,6 @@ public class CustomerController implements CustomerAPI { private final CustomerService customerService; - @Autowired public CustomerController(CustomerService customerService) { this.customerService = customerService; } diff --git a/jpa/boot-data-customsequence/src/main/java/com/example/custom/sequence/web/controllers/OrderController.java b/jpa/boot-data-customsequence/src/main/java/com/example/custom/sequence/web/controllers/OrderController.java index 5cbe5d3bc..b48f032c1 100644 --- a/jpa/boot-data-customsequence/src/main/java/com/example/custom/sequence/web/controllers/OrderController.java +++ b/jpa/boot-data-customsequence/src/main/java/com/example/custom/sequence/web/controllers/OrderController.java @@ -6,7 +6,6 @@ import com.example.custom.sequence.services.OrderService; import com.example.custom.sequence.utils.AppConstants; import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; @@ -28,7 +27,6 @@ public class OrderController { private final OrderService orderService; - @Autowired public OrderController(OrderService orderService) { this.orderService = orderService; } diff --git a/jpa/multitenancy/multidatasource-multitenancy/src/main/java/com/example/multitenancy/primary/services/PrimaryCustomerService.java b/jpa/multitenancy/multidatasource-multitenancy/src/main/java/com/example/multitenancy/primary/services/PrimaryCustomerService.java index 219f49b6d..513d8064c 100644 --- a/jpa/multitenancy/multidatasource-multitenancy/src/main/java/com/example/multitenancy/primary/services/PrimaryCustomerService.java +++ b/jpa/multitenancy/multidatasource-multitenancy/src/main/java/com/example/multitenancy/primary/services/PrimaryCustomerService.java @@ -4,7 +4,6 @@ import com.example.multitenancy.primary.repositories.PrimaryCustomerRepository; import java.util.List; import java.util.Optional; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -14,7 +13,6 @@ public class PrimaryCustomerService { private final PrimaryCustomerRepository primaryCustomerRepository; - @Autowired public PrimaryCustomerService(PrimaryCustomerRepository primaryCustomerRepository) { this.primaryCustomerRepository = primaryCustomerRepository; } diff --git a/jpa/multitenancy/multidatasource-multitenancy/src/main/java/com/example/multitenancy/secondary/services/SecondaryCustomerService.java b/jpa/multitenancy/multidatasource-multitenancy/src/main/java/com/example/multitenancy/secondary/services/SecondaryCustomerService.java index 7cc1f8dda..057d8328f 100644 --- a/jpa/multitenancy/multidatasource-multitenancy/src/main/java/com/example/multitenancy/secondary/services/SecondaryCustomerService.java +++ b/jpa/multitenancy/multidatasource-multitenancy/src/main/java/com/example/multitenancy/secondary/services/SecondaryCustomerService.java @@ -4,7 +4,6 @@ import com.example.multitenancy.secondary.repositories.SecondaryCustomerRepository; import java.util.List; import java.util.Optional; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -14,7 +13,6 @@ public class SecondaryCustomerService { private final SecondaryCustomerRepository secondaryCustomerRepository; - @Autowired public SecondaryCustomerService(SecondaryCustomerRepository secondaryCustomerRepository) { this.secondaryCustomerRepository = secondaryCustomerRepository; } diff --git a/jpa/multitenancy/multitenancy-db/src/main/java/com/example/multitenancy/db/services/CustomerService.java b/jpa/multitenancy/multitenancy-db/src/main/java/com/example/multitenancy/db/services/CustomerService.java index b1a2ffc7b..dee64e03f 100644 --- a/jpa/multitenancy/multitenancy-db/src/main/java/com/example/multitenancy/db/services/CustomerService.java +++ b/jpa/multitenancy/multitenancy-db/src/main/java/com/example/multitenancy/db/services/CustomerService.java @@ -4,7 +4,6 @@ import com.example.multitenancy.db.repositories.CustomerRepository; import java.util.List; import java.util.Optional; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -14,7 +13,6 @@ public class CustomerService { private final CustomerRepository customerRepository; - @Autowired public CustomerService(CustomerRepository customerRepository) { this.customerRepository = customerRepository; } diff --git a/jpa/multitenancy/multitenancy-db/src/main/java/com/example/multitenancy/db/web/controllers/CustomerController.java b/jpa/multitenancy/multitenancy-db/src/main/java/com/example/multitenancy/db/web/controllers/CustomerController.java index 3eadea24f..d77fa42bc 100644 --- a/jpa/multitenancy/multitenancy-db/src/main/java/com/example/multitenancy/db/web/controllers/CustomerController.java +++ b/jpa/multitenancy/multitenancy-db/src/main/java/com/example/multitenancy/db/web/controllers/CustomerController.java @@ -5,7 +5,6 @@ import com.example.multitenancy.db.utils.AppConstants; import java.util.List; import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; @@ -27,7 +26,6 @@ public class CustomerController { private final CustomerService customerService; - @Autowired public CustomerController(CustomerService customerService) { this.customerService = customerService; } diff --git a/r2dbc/boot-jooq-r2dbc-sample/pom.xml b/r2dbc/boot-jooq-r2dbc-sample/pom.xml index e2a8d5aa9..1aab9c8f8 100644 --- a/r2dbc/boot-jooq-r2dbc-sample/pom.xml +++ b/r2dbc/boot-jooq-r2dbc-sample/pom.xml @@ -252,7 +252,7 @@ - + org.apache.maven.plugins maven-surefire-plugin