Skip to content
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
1 change: 1 addition & 0 deletions core/src/main/java/bisq/core/offer/OpenOfferManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ public void onFault(String errorMessage) {
// Update persisted offer if a new capability is required after a software update
///////////////////////////////////////////////////////////////////////////////////////////

@SuppressWarnings("deprecation")
private void maybeUpdatePersistedOffers() {
// We need to clone to avoid ConcurrentModificationException
ArrayList<OpenOffer> openOffersClone = new ArrayList<>(openOffers.getList());
Expand Down
2 changes: 2 additions & 0 deletions core/src/main/java/bisq/core/offer/bisq_v1/OfferPayload.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ public byte[] getHash() {
// PROTO BUFFER
///////////////////////////////////////////////////////////////////////////////////////////

@SuppressWarnings("deprecation")
@Override
public protobuf.StoragePayload toProtoMessage() {
protobuf.OfferPayload.Builder builder = protobuf.OfferPayload.newBuilder()
Expand Down Expand Up @@ -280,6 +281,7 @@ public protobuf.StoragePayload toProtoMessage() {
return protobuf.StoragePayload.newBuilder().setOfferPayload(builder).build();
}

@SuppressWarnings("deprecation")
public static OfferPayload fromProto(protobuf.OfferPayload proto) {
checkArgument(!proto.getOfferFeePaymentTxId().isEmpty(), "OfferFeePaymentTxId must be set in PB.OfferPayload");
List<String> acceptedBankIds = proto.getAcceptedBankIdsList().isEmpty() ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static AchTransferAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.BankAccountPayload bankAccountPayloadPB = countryBasedPaymentAccountPayload.getBankAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static AdvancedCashAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new AdvancedCashAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static AliPayAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new AliPayAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PaymentAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.AmazonGiftCardAccountPayload amazonGiftCardAccountPayload = proto.getAmazonGiftCardAccountPayload();
return new AmazonGiftCardAccountPayload(proto.getPaymentMethodId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public Message toProtoMessage() {
).build();
}

@SuppressWarnings("deprecation")
public static AustraliaPayidAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.AustraliaPayidPayload AustraliaPayidPayload = proto.getAustraliaPayidPayload();
return new AustraliaPayidAccountPayload(proto.getPaymentMethodId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static BizumAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.BizumAccountPayload paytmAccountPayloadPB = countryBasedPaymentAccountPayload.getBizumAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static CapitualAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new CapitualAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static CashByMailAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new CashByMailAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PaymentAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.CashDepositAccountPayload cashDepositAccountPayload = countryBasedPaymentAccountPayload.getCashDepositAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static CelPayAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new CelPayAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static ClearXchangeAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new ClearXchangeAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static CryptoCurrencyAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new CryptoCurrencyAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static DomesticWireTransferAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.BankAccountPayload bankAccountPayloadPB = countryBasedPaymentAccountPayload.getBankAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PaymentAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.F2FAccountPayload f2fAccountPayloadPB = countryBasedPaymentAccountPayload.getF2FAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ private FasterPaymentsAccountPayload(String paymentMethod,
this.email = email;
}

@SuppressWarnings("deprecation")
@Override
public Message toProtoMessage() {
return getPaymentAccountPayloadBuilder()
Expand All @@ -82,6 +83,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static FasterPaymentsAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new FasterPaymentsAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static HalCashAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new HalCashAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static ImpsAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.IfscBasedAccountPayload ifscBasedAccountPayloadPB = countryBasedPaymentAccountPayload.getIfscBasedAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static InstantCryptoCurrencyPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new InstantCryptoCurrencyPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static InteracETransferAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new InteracETransferAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public Message toProtoMessage() {
).build();
}

@SuppressWarnings("deprecation")
public static JapanBankAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.JapanBankAccountPayload japanBankAccountPayload = proto.getJapanBankAccountPayload();
return new JapanBankAccountPayload(proto.getPaymentMethodId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static MercadoPagoAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.MercadoPagoAccountPayload mercadoPagoAccountPayloadPB = countryBasedPaymentAccountPayload.getMercadoPagoAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static MoneseAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new MoneseAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static MoneyBeamAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new MoneyBeamAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PaymentAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.MoneyGramAccountPayload moneyGramAccountPayload = proto.getMoneyGramAccountPayload();
return new MoneyGramAccountPayload(proto.getPaymentMethodId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static NationalBankAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.BankAccountPayload bankAccountPayloadPB = countryBasedPaymentAccountPayload.getBankAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static NeftAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.IfscBasedAccountPayload ifscBasedAccountPayloadPB = countryBasedPaymentAccountPayload.getIfscBasedAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static NequiAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.NequiAccountPayload paytmAccountPayloadPB = countryBasedPaymentAccountPayload.getNequiAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PaxumAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new PaxumAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ protected PaymentAccountPayload(String paymentMethodId,
}

protected protobuf.PaymentAccountPayload.Builder getPaymentAccountPayloadBuilder() {
@SuppressWarnings("deprecation")
final protobuf.PaymentAccountPayload.Builder builder = protobuf.PaymentAccountPayload.newBuilder()
.setPaymentMethodId(paymentMethodId)
.setMaxTradePeriod(maxTradePeriod)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PayseraAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new PayseraAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PaytmAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.PaytmAccountPayload paytmAccountPayloadPB = countryBasedPaymentAccountPayload.getPaytmAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PerfectMoneyAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new PerfectMoneyAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PixAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.PixAccountPayload paytmAccountPayloadPB = countryBasedPaymentAccountPayload.getPixAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PopmoneyAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new PopmoneyAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PromptPayAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new PromptPayAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public Message toProtoMessage() {
return getPaymentAccountPayloadBuilder().setRevolutAccountPayload(revolutBuilder).build();
}


@SuppressWarnings("deprecation")
public static RevolutAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.RevolutAccountPayload revolutAccountPayload = proto.getRevolutAccountPayload();
return new RevolutAccountPayload(proto.getPaymentMethodId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static RtgsAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.IfscBasedAccountPayload ifscBasedAccountPayloadPB = countryBasedPaymentAccountPayload.getIfscBasedAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static SameBankAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.BankAccountPayload bankAccountPayload = countryBasedPaymentAccountPayload.getBankAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static SatispayAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.SatispayAccountPayload accountPayloadPB = countryBasedPaymentAccountPayload.getSatispayAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static SbpAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
return new SbpAccountPayload(proto.getPaymentMethodId(),
proto.getId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ private SepaAccountPayload(String paymentMethodName,
persistedAcceptedCountryCodes.addAll(acceptedCountryCodes);
}

@SuppressWarnings("deprecation")
@Override
public Message toProtoMessage() {
protobuf.SepaAccountPayload.Builder builder =
Expand All @@ -111,6 +112,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PaymentAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.SepaAccountPayload sepaAccountPayloadPB = countryBasedPaymentAccountPayload.getSepaAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static PaymentAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.SepaInstantAccountPayload sepaInstantAccountPayloadPB = countryBasedPaymentAccountPayload.getSepaInstantAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static SpecificBanksAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.BankAccountPayload bankAccountPayload = countryBasedPaymentAccountPayload.getBankAccountPayload();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public Message toProtoMessage() {
.build();
}

@SuppressWarnings("deprecation")
public static StrikeAccountPayload fromProto(protobuf.PaymentAccountPayload proto) {
protobuf.CountryBasedPaymentAccountPayload countryBasedPaymentAccountPayload = proto.getCountryBasedPaymentAccountPayload();
protobuf.StrikeAccountPayload accountPayloadPB = countryBasedPaymentAccountPayload.getStrikeAccountPayload();
Expand Down
Loading
Loading