Skip to content

Commit 5e10693

Browse files
committed
fix checkstyle
1 parent 07a7d12 commit 5e10693

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎src/main/java/org/tron/common/storage/leveldb/LevelDbDataSourceImpl.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ public LevelDbDataSourceImpl(String parentName, String name) {
7272
}
7373

7474
public boolean checkOrInitEngine() {
75-
String dir = Args.getInstance().getOutputDirectory() + Args.getInstance().getStorage().getDbDirectory() + File.separator + dataBaseName;
75+
String dir =
76+
Args.getInstance().getOutputDirectory() + Args.getInstance().getStorage().getDbDirectory()
77+
+ File.separator + dataBaseName;
7678
String enginePath = dir + File.separator + "engine.properties";
7779

7880
if (FileUtil.createDirIfNotExists(dir)) {

‎src/main/java/org/tron/core/capsule/utils/BlockUtil.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ public static BlockCapsule newGenesisBlockCapsule() {
5050
BlockCapsule blockCapsule = new BlockCapsule(timestamp, parentHash, number, transactionList);
5151

5252
blockCapsule.setMerkleRoot();
53-
blockCapsule.setWitness("A new system must allow existing systems to be linked together without requiring any central control or coordination");
53+
blockCapsule.setWitness(
54+
"A new system must allow existing systems to be linked together without "
55+
+ "requiring any central control or coordination");
5456
blockCapsule.generatedByMyself = true;
5557

5658
return blockCapsule;

‎src/main/java/org/tron/core/db/backup/DbBackupConfig.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public DbBackupConfig initArgs(boolean enable, String propPath, String bak1path,
8080
setBak2path(bak2path);
8181
setFrequency(frequency);
8282
logger.info(
83-
"success to enable the db backup plugin. bak1path:{}, bak2path:{}, backup once every {} blocks handled",
83+
"success to enable the db backup plugin. bak1path:{}, bak2path:{}, "
84+
+ "backup once every {} blocks handled",
8485
bak1path, bak2path, frequency);
8586
}
8687

‎src/main/java/org/tron/core/db/backup/NeedBeanCondition.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ public class NeedBeanCondition implements Condition {
99

1010
@Override
1111
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
12-
return (Args.getInstance().getStorage().getDbVersion() == 2 && "ROCKSDB".equals(Args.getInstance().getStorage().getDbEngine().toUpperCase())) && Args.getInstance()
12+
return (Args.getInstance().getStorage().getDbVersion() == 2 && "ROCKSDB"
13+
.equals(Args.getInstance().getStorage().getDbEngine().toUpperCase())) && Args.getInstance()
1314
.getDbBackupConfig().isEnable();
1415
}
1516
}

0 commit comments

Comments
 (0)