Skip to content

Commit 80e429c

Browse files
committed
modify sonar bug
1 parent ff5ffc1 commit 80e429c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/tron/common/utils/SlidingWindowCounter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public String toString() {
4343
*/
4444
public class SlidingWindowCounter {
4545

46-
private SlotBaseCounter slotBaseCounter;
46+
private volatile SlotBaseCounter slotBaseCounter;
4747
private volatile int windowSize;
4848
private volatile int head;
4949

src/main/java/org/tron/core/capsule/utils/MerkleTree.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@Getter
1111
public class MerkleTree {
1212

13-
private static MerkleTree instance;
13+
private static volatile MerkleTree instance;
1414
private List<Sha256Hash> hashList;
1515
private List<Leaf> leaves;
1616
private Leaf root;

0 commit comments

Comments
 (0)