Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

refactor: Remove unnecessary @Autowired #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.gemfire.GemfireTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.util.Assert;
Expand All @@ -44,7 +43,6 @@ class GemfireCustomerRepository implements CustomerRepository {
*
* @param template must not be {@literal null}.
*/
@Autowired
public GemfireCustomerRepository(GemfireTemplate template) {

Assert.notNull(template);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.hive.service.HiveClient;
import org.apache.hadoop.hive.service.HiveServerException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.hadoop.hive.HiveClientFactory;
import org.springframework.stereotype.Repository;
Expand All @@ -26,7 +25,6 @@ public class HivePasswordRepository implements PasswordRepository {
private @Value("${hive.port}")
int port;

@Autowired
public HivePasswordRepository(HiveClientFactory hiveClientFactory) {
this.hiveClientFactory = hiveClientFactory;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.hadoop.hive.HiveOperations;
import org.springframework.stereotype.Repository;
Expand All @@ -15,7 +14,6 @@ public class HiveTemplatePasswordRepository implements PasswordRepository {

private HiveOperations hiveOperations;

@Autowired
public HiveTemplatePasswordRepository(HiveOperations hiveOperations) {
this.hiveOperations = hiveOperations;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import static org.springframework.data.mongodb.core.query.Criteria.*;
import static org.springframework.data.mongodb.core.query.Query.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.core.query.Query;
Expand All @@ -41,7 +40,6 @@ class MongoDbCustomerRepository implements CustomerRepository {
*
* @param operations must not be {@literal null}.
*/
@Autowired
public MongoDbCustomerRepository(MongoOperations operations) {

Assert.notNull(operations);
Expand Down