mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Add getMostRecentAddress with throwing a UnsupportedOperationException to make sure the old field is not used anymore from any client.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
95023216ec
commit
bf325938d5
@ -79,6 +79,11 @@ public class BurningManCandidate {
|
||||
return isBugfix6699Activated ? receiverAddress : mostRecentAddress;
|
||||
}
|
||||
|
||||
public Optional<String> getMostRecentAddress() {
|
||||
// Lombok getter is set for class, so we would get a getMostRecentAddress but want to ensure it's not accidentally used.
|
||||
throw new UnsupportedOperationException("getMostRecentAddress must not be used. Use getReceiverAddress instead.");
|
||||
}
|
||||
|
||||
public void addBurnOutputModel(BurnOutputModel burnOutputModel) {
|
||||
if (burnOutputModels.contains(burnOutputModel)) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user