Skip to content

Commit

Permalink
Merge pull request #167 from WeBankFinTech/bugfix/spotbug-style-v161
Browse files Browse the repository at this point in the history
* Fix spotbug alerts
  • Loading branch information
chaoxinhu committed Apr 13, 2020
2 parents 0e0e0fb + 4f1e18d commit 6652e11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ private ResponseData<String> hashToNewEvidence(String hashValue, String privateK
StandardCharsets.UTF_8);
Long timestamp = DateUtils.getNoMillisecondTimeStamp();

//如果
boolean flag = getOfflineFlag();
if (flag) {

Expand Down Expand Up @@ -412,7 +411,7 @@ public ResponseData<String> createEvidenceWithLogAndCustomKey(
DataToolUtils.base64Encode(DataToolUtils.simpleSignatureSerialization(sigData)),
StandardCharsets.UTF_8);
Long timestamp = DateUtils.getNoMillisecondTimeStamp();
//如果

boolean flag = getOfflineFlag();
if (flag) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ ResponseData<String> createEvidence(
String privateKey
);

/**
* Batch creation of evidences. Return values are a list which indicates successful or failed
* creation with strict order of input evidences.
*/
ResponseData<List<Boolean>> batchCreateEvidence(
List<String> hashValues,
List<String> signatures,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public void testBatchCreate() throws Exception {
Assert.assertEquals(booleans.size(), hashValues.size());
Boolean result = true;
for (int i = 0; i < booleans.size(); i++) {
result &= booleans.get(i);
result = result && booleans.get(i).booleanValue();
}
Assert.assertTrue(result);

Expand All @@ -338,7 +338,7 @@ public void testBatchCreate() throws Exception {
Assert.assertEquals(booleans.size(), hashValues.size());
result = true;
for (int i = 0; i < booleans.size(); i++) {
result &= booleans.get(i);
result = result && booleans.get(i).booleanValue();
}
Assert.assertTrue(result);

Expand Down

0 comments on commit 6652e11

Please sign in to comment.