Remove a few this references

This commit is contained in:
Allink 2023-05-20 05:42:17 +01:00
parent f366a91b36
commit cad1ab8ec7
No known key found for this signature in database
2 changed files with 8 additions and 8 deletions

View File

@ -210,7 +210,7 @@ public class SimpleUserData implements UserData
@Override
public boolean areTransactionsFrozen()
{
return this.transactionsFrozen;
return transactionsFrozen;
}
@Override
@ -222,18 +222,18 @@ public class SimpleUserData implements UserData
@Override
public void addToBalance(long amount)
{
this.balance.addAndGet(amount);
balance.addAndGet(amount);
}
@Override
public void removeFromBalance(long amount)
{
this.balance.addAndGet(-amount);
balance.addAndGet(-amount);
}
@Override
public void setBalance(long newBalance)
{
this.balance.set(newBalance);
balance.set(newBalance);
}
}

View File

@ -27,25 +27,25 @@ public class SimpleTransaction implements Transaction
@Override
public EconomicEntity getSource()
{
return this.source;
return source;
}
@Override
public EconomicEntity getDestination()
{
return this.destination;
return destination;
}
@Override
public long getTransferAmount()
{
return this.transferAmount.get();
return transferAmount.get();
}
@Override
public long addBalance(long amount)
{
return this.transferAmount.addAndGet(amount);
return transferAmount.addAndGet(amount);
}
@Override