mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
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:
parent
a46526198d
commit
0046b08f9d
@ -169,8 +169,8 @@ public class CoreApi {
|
||||
return paymentAccountsService.getPaymentAccounts();
|
||||
}
|
||||
|
||||
public List<PaymentMethod> getPaymentMethodIds() {
|
||||
return paymentAccountsService.getPaymentMethodIds();
|
||||
public List<PaymentMethod> getPaymentMethods() {
|
||||
return paymentAccountsService.getPaymentMethods();
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -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());
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user