Skip to content

Commit 9832dad

Browse files
committed
Merge remote-tracking branch 'origin/fix/release_4.0_sonar_check' into fix/release_4.0_sonar_check
2 parents 2259019 + 77cf38e commit 9832dad

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

actuator/src/main/java/org/tron/core/vm/PrecompiledContracts.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ protected int parseInt(byte[] data, int idx) {
932932

933933
private int getFrontierSlot(long leafIndex) {
934934
int slot = 0;
935-
if (leafIndex % 2 == 1) {
935+
if (leafIndex % 2 != 0) {
936936
int exp1 = 1;
937937
long pow1 = 2;
938938
long pow2 = pow1 << 1;
@@ -1240,7 +1240,8 @@ public Pair<Boolean, byte[]> execute(byte[] data) {
12401240
signHash, spendCvs, spendCount * 32, receiveCvs, receiveCount * 32));
12411241
futures.add(futureCheckBindingSig);
12421242

1243-
countDownLatch.await(getCPUTimeLeftInNanoSecond(), TimeUnit.NANOSECONDS);
1243+
boolean withNoTimeout = countDownLatch.await(getCPUTimeLeftInNanoSecond(),
1244+
TimeUnit.NANOSECONDS);
12441245
boolean checkResult = true;
12451246
for (Future<Boolean> future : futures) {
12461247
boolean eachTaskResult = future.get();
@@ -1341,9 +1342,9 @@ public Boolean call() throws ZksnarkException {
13411342

13421343
private static class SaplingCheckBingdingSig implements Callable<Boolean> {
13431344

1344-
long valueBalance;
1345-
int spendCvLen;
1346-
int receiveCvLen;
1345+
private long valueBalance;
1346+
private int spendCvLen;
1347+
private int receiveCvLen;
13471348
private byte[] bindingSig;
13481349
private byte[] signHash;
13491350
private byte[] spendCvs;

0 commit comments

Comments
 (0)