From cad1ab8ec7a5e6cf1cd5af17a67d35a5bc0db326 Mon Sep 17 00:00:00 2001 From: Allink Date: Sat, 20 May 2023 05:42:17 +0100 Subject: [PATCH] Remove a few this references --- .../java/me/totalfreedom/datura/user/SimpleUserData.java | 8 ++++---- .../me/totalfreedom/fossil/economy/SimpleTransaction.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Datura/src/main/java/me/totalfreedom/datura/user/SimpleUserData.java b/Datura/src/main/java/me/totalfreedom/datura/user/SimpleUserData.java index fb3e825..556ec60 100644 --- a/Datura/src/main/java/me/totalfreedom/datura/user/SimpleUserData.java +++ b/Datura/src/main/java/me/totalfreedom/datura/user/SimpleUserData.java @@ -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); } } diff --git a/Fossil/src/main/java/me/totalfreedom/fossil/economy/SimpleTransaction.java b/Fossil/src/main/java/me/totalfreedom/fossil/economy/SimpleTransaction.java index 17e0a13..b65f8b6 100644 --- a/Fossil/src/main/java/me/totalfreedom/fossil/economy/SimpleTransaction.java +++ b/Fossil/src/main/java/me/totalfreedom/fossil/economy/SimpleTransaction.java @@ -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