clean up with constants
This commit is contained in:
@@ -16,8 +16,8 @@ public class EmailVerificationService {
|
||||
public EmailVerificationService(EmailRepository emailRepository) {
|
||||
this.emailRepository = emailRepository;
|
||||
}
|
||||
public void insertDB(EmailEntity EmailEntity) {
|
||||
emailRepository.save(EmailEntity);
|
||||
public void insertDB(EmailEntity emailEntity) {
|
||||
emailRepository.save(emailEntity);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -16,8 +16,8 @@ public class PhoneVerificationService {
|
||||
public PhoneVerificationService(PhoneRepository phoneRepository) {
|
||||
this.phoneRepository = phoneRepository;
|
||||
}
|
||||
public void insertDB(PhoneEntity PhoneEntity) {
|
||||
phoneRepository.save(PhoneEntity);
|
||||
public void insertDB(PhoneEntity phoneEntity) {
|
||||
phoneRepository.save(phoneEntity);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -16,8 +16,8 @@ public class SMSVerificationService {
|
||||
public SMSVerificationService(SMSRepository smsRepository) {
|
||||
this.smsRepository = smsRepository;
|
||||
}
|
||||
public void insertDB(SMSEntity SMSEntity) {
|
||||
smsRepository.save(SMSEntity);
|
||||
public void insertDB(SMSEntity smsEntity) {
|
||||
smsRepository.save(smsEntity);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class TextVerificationService {
|
||||
private final TextRepository textRepository;
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(TextVerificationService.class);
|
||||
@Autowired
|
||||
public TextVerificationService(TextRepository textRepository) {
|
||||
this.textRepository = textRepository;
|
||||
@@ -18,5 +18,5 @@ public class TextVerificationService {
|
||||
public void insertDB(TextEntity textEntity) {
|
||||
textRepository.save(textEntity);
|
||||
}
|
||||
private static final Logger logger = LoggerFactory.getLogger(TextVerificationService.class);
|
||||
|
||||
}
|
||||
@@ -16,8 +16,8 @@ public class WifiVerificationService {
|
||||
public WifiVerificationService(WifiRepository wifiRepository) {
|
||||
this.wifiRepository = wifiRepository;
|
||||
}
|
||||
public void insertDB(WifiEntity WifiEntity) {
|
||||
wifiRepository.save(WifiEntity);
|
||||
public void insertDB(WifiEntity wifiEntity) {
|
||||
wifiRepository.save(wifiEntity);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user