Skip to content

Commit

Permalink
Fixed injector code-style.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurr0 committed Mar 10, 2022
1 parent cfd78c6 commit c89564a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@

public class MongoDbService implements DataService {

@Inject
private Logger logger;
@Inject
private Configuration configuration;
@Inject private Logger logger;
@Inject private Configuration configuration;

private MongoCollection<Document> mongoCollection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@

public class MySQLService implements DataService {

@Inject
private Logger logger;
@Inject
private Configuration configuration;
@Inject private Logger logger;
@Inject private Configuration configuration;

private HikariDataSource dataSource;
private Connection connection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@

public class PlaceholderAPIHook extends PlaceholderExpansion {

@Inject
private Logger logger;
@Inject
private JavaPlugin plugin;
@Inject
private Configuration configuration;
@Inject
private ProfileService profileService;
@Inject private Logger logger;
@Inject private JavaPlugin plugin;
@Inject private Configuration configuration;
@Inject private ProfileService profileService;

@Override
public String getIdentifier() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@

public class VaultHook {

@Inject
private Logger logger;
@Inject
private JavaPlugin plugin;
@Inject
private VaultManager provider;
@Inject private Logger logger;
@Inject private JavaPlugin plugin;
@Inject private VaultManager provider;

public void registerHook() {
Bukkit.getServicesManager().register(Economy.class, this.provider, plugin, ServicePriority.Highest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@

public class VaultManager implements Economy {

@Inject
private Configuration configuration;
@Inject
private ProfileService profileService;
@Inject private Configuration configuration;
@Inject private ProfileService profileService;

@Override
public boolean isEnabled() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ public class ProfileService {
.maximumSize(100)
.build();

@Inject
private DataService dataService;
@Inject
private Configuration configuration;
@Inject private DataService dataService;
@Inject private Configuration configuration;

public Profile getProfile(UUID uniqueId) {
AtomicReference<Profile> atomicProfile = new AtomicReference<>(this.profilesCache.getIfPresent(uniqueId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@

public class ProfileSaveTask implements Runnable {

@Inject
private DataService dataService;
@Inject
private ProfileService profileService;
@Inject private DataService dataService;
@Inject private ProfileService profileService;

@Override
public void run() {
Expand Down

0 comments on commit c89564a

Please sign in to comment.