Skip to content

Commit

Permalink
fix checkstyle: Update StandardStateMachineCallback.java (#2290)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Zony7 authored Aug 22, 2023
1 parent d12f573 commit 4d7ad86
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public class StandardStateMachineCallback implements StateMachineCallback {

private boolean isMaster = false;

public StandardStateMachineCallback(TaskManager taskManager, GlobalMasterInfo globalMasterInfo) {
public StandardStateMachineCallback(TaskManager taskManager,
GlobalMasterInfo globalMasterInfo) {
this.taskManager = taskManager;
this.taskManager.enableRoleElected(true);
this.globalMasterInfo = globalMasterInfo;
Expand Down

0 comments on commit 4d7ad86

Please sign in to comment.