Revert "Avoid codacy issue over use of fully qualified name"

This reverts commit a46526198d.

The service side method name change is not correct.
This commit is contained in:
ghubstan 2020-11-18 12:47:12 -03:00
parent a46526198d
commit 0046b08f9d
No known key found for this signature in database
GPG Key ID: E35592D6800A861E
3 changed files with 5 additions and 5 deletions

View File

@ -169,8 +169,8 @@ public class CoreApi {
return paymentAccountsService.getPaymentAccounts();
}
public List<PaymentMethod> getPaymentMethodIds() {
return paymentAccountsService.getPaymentMethodIds();
public List<PaymentMethod> getPaymentMethods() {
return paymentAccountsService.getPaymentMethods();
}
///////////////////////////////////////////////////////////////////////////////////////////

View File

@ -78,8 +78,8 @@ class CorePaymentAccountsService {
return user.getPaymentAccounts();
}
List<PaymentMethod> getPaymentMethodIds() {
return getPaymentMethods().stream()
List<PaymentMethod> getPaymentMethods() {
return PaymentMethod.getPaymentMethods().stream()
.filter(paymentMethod -> !paymentMethod.isAsset())
.sorted(Comparator.comparing(PaymentMethod::getId))
.collect(Collectors.toList());

View File

@ -72,7 +72,7 @@ class GrpcPaymentAccountsService extends PaymentAccountsGrpc.PaymentAccountsImpl
@Override
public void getPaymentMethods(GetPaymentMethodsRequest req,
StreamObserver<GetPaymentMethodsReply> responseObserver) {
var paymentMethods = coreApi.getPaymentMethodIds().stream()
var paymentMethods = coreApi.getPaymentMethods().stream()
.map(PaymentMethod::toProtoMessage)
.collect(Collectors.toList());
var reply = GetPaymentMethodsReply.newBuilder()