Skip to content

Commit

Permalink
Fix FindBugs Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jie Huang committed Jan 19, 2019
1 parent a48b0fc commit 2f1ed0b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ public synchronized double getDecreasePoint() {
return decreasePoint;
}

public double getDropChance() {
public synchronized double getDropChance() {
return drop;
}

public int getDeficit() {
public synchronized int getDeficit() {
return maxTokens - tokens;
}

Expand Down Expand Up @@ -199,7 +199,7 @@ public synchronized boolean checkLimit(int need) {
return true;
}

public boolean checkBlue(long now) {
public synchronized boolean checkBlue(long now) {
int length = maxTokens - tokens;
int limit = maxTokens;
long diff = now - lastFreeze;
Expand Down

0 comments on commit 2f1ed0b

Please sign in to comment.