Skip to content

Commit 9831206

Browse files
author
Sunny Jiao
committed
fix checkstyle
1 parent 8578b90 commit 9831206

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

framework/src/main/java/org/tron/core/Wallet.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,10 +782,12 @@ public WitnessList getPaginatedNowWitnessList(long offset, long limit) throws
782782

783783
/*
784784
In the maintenance period, the VoteStores will be cleared.
785-
To avoid the race condition of VoteStores deleted but Witness vote counts not updated, return retry error.
785+
To avoid the race condition of VoteStores deleted but Witness vote counts not updated,
786+
return retry error.
786787
*/
787788
if (chainBaseManager.getDynamicPropertiesStore().getStateFlag() == 1) {
788-
String message = "Service temporarily unavailable during maintenance period. Please try again later.";
789+
String message = "Service temporarily unavailable during maintenance period. " +
790+
"Please try again later.";
789791
throw new MaintenanceUnavailableException(message);
790792
}
791793
// It contains the final vote count at the end of the last epoch.

framework/src/test/java/org/tron/core/WalletTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,7 @@ public void testGetPaginatedNowWitnessList_CornerCase() {
881881
witnessList == null);
882882

883883
witnessList = wallet.getPaginatedNowWitnessList(100, 0);
884-
Assert.assertTrue("Should return an empty witness list when limit is 0",
885-
witnessList == null);
884+
Assert.assertTrue("Should return an empty witness list when limit is 0", witnessList == null);
886885

887886
String fakeWitnessAddressPrefix = "fake_witness";
888887
int fakeNumberOfWitnesses = 1000 + 10;
@@ -902,7 +901,7 @@ public void testGetPaginatedNowWitnessList_CornerCase() {
902901
.delete(ByteString.copyFromUtf8(fakeWitnessAddressPrefix + i).toByteArray());
903902
}
904903
} catch (MaintenanceUnavailableException e) {
905-
Assert.fail(e.getMessage());
904+
Assert.fail(e.getMessage());
906905
}
907906
}
908907

@@ -936,7 +935,7 @@ public void testGetPaginatedNowWitnessList() {
936935

937936
logger.info("now request paginated witness list with 0 offset and 10 limit:");
938937
GrpcAPI.WitnessList witnessList2 = null;
939-
try {
938+
try {
940939
// To avoid throw MaintenanceClearingException
941940
dbManager.getChainBaseManager().getDynamicPropertiesStore().saveStateFlag(0);
942941
witnessList2 = wallet.getPaginatedNowWitnessList(0, 10);

0 commit comments

Comments
 (0)