Skip to content

Commit 4d7ad86

Browse files
authored
fix checkstyle: Update StandardStateMachineCallback.java (#2290)
During the compilation of your code, an informational message was displayed indicating an issue with the file /home/lzy/hugegraph/hugegraph-core/src/main/java/org/apache/hugegraph/masterelection/StandardStateMachineCallback.java at line 36. The specific problem was that the length of this line exceeded 100 characters, with a total of 101 characters. To address this issue, I have made modifications to this class. I have split the originally long line into multiple lines to ensure that each line's length adheres to the coding standards' specified limits. This action not only aligns with the requirements of the code style, but also improves the readability and maintainability of the code.
1 parent d12f573 commit 4d7ad86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hugegraph-core/src/main/java/org/apache/hugegraph/masterelection/StandardStateMachineCallback.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public class StandardStateMachineCallback implements StateMachineCallback {
3333

3434
private boolean isMaster = false;
3535

36-
public StandardStateMachineCallback(TaskManager taskManager, GlobalMasterInfo globalMasterInfo) {
36+
public StandardStateMachineCallback(TaskManager taskManager,
37+
GlobalMasterInfo globalMasterInfo) {
3738
this.taskManager = taskManager;
3839
this.taskManager.enableRoleElected(true);
3940
this.globalMasterInfo = globalMasterInfo;

0 commit comments

Comments
 (0)