mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-11-14 05:03:33 +00:00
Remove a few this references
This commit is contained in:
parent
f366a91b36
commit
cad1ab8ec7
@ -210,7 +210,7 @@ public class SimpleUserData implements UserData
|
|||||||
@Override
|
@Override
|
||||||
public boolean areTransactionsFrozen()
|
public boolean areTransactionsFrozen()
|
||||||
{
|
{
|
||||||
return this.transactionsFrozen;
|
return transactionsFrozen;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -222,18 +222,18 @@ public class SimpleUserData implements UserData
|
|||||||
@Override
|
@Override
|
||||||
public void addToBalance(long amount)
|
public void addToBalance(long amount)
|
||||||
{
|
{
|
||||||
this.balance.addAndGet(amount);
|
balance.addAndGet(amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removeFromBalance(long amount)
|
public void removeFromBalance(long amount)
|
||||||
{
|
{
|
||||||
this.balance.addAndGet(-amount);
|
balance.addAndGet(-amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setBalance(long newBalance)
|
public void setBalance(long newBalance)
|
||||||
{
|
{
|
||||||
this.balance.set(newBalance);
|
balance.set(newBalance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,25 +27,25 @@ public class SimpleTransaction implements Transaction
|
|||||||
@Override
|
@Override
|
||||||
public EconomicEntity getSource()
|
public EconomicEntity getSource()
|
||||||
{
|
{
|
||||||
return this.source;
|
return source;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EconomicEntity getDestination()
|
public EconomicEntity getDestination()
|
||||||
{
|
{
|
||||||
return this.destination;
|
return destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getTransferAmount()
|
public long getTransferAmount()
|
||||||
{
|
{
|
||||||
return this.transferAmount.get();
|
return transferAmount.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long addBalance(long amount)
|
public long addBalance(long amount)
|
||||||
{
|
{
|
||||||
return this.transferAmount.addAndGet(amount);
|
return transferAmount.addAndGet(amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user