style: format code (#4212)

close #4204
This commit is contained in:
acbin
2023-06-09 18:52:05 +08:00
committed by GitHub
parent ad03086f54
commit 00282efd8b
521 changed files with 5233 additions and 7309 deletions

View File

@ -25,7 +25,6 @@ public class ProcessDetails {
return burstTime;
}
public int getWaitingTime() {
return waitingTime;
}

View File

@ -54,10 +54,7 @@ public class LargeTreeNode<E> extends TreeNode<E> {
* @see TreeNode#TreeNode(Object, Node)
*/
public LargeTreeNode(
E data,
LargeTreeNode<E> parentNode,
Collection<LargeTreeNode<E>> childNodes
) {
E data, LargeTreeNode<E> parentNode, Collection<LargeTreeNode<E>> childNodes) {
super(data, parentNode);
this.childNodes = childNodes;
}

View File

@ -20,7 +20,8 @@ public abstract class Node<E> {
/**
* Empty constructor.
*/
public Node() {}
public Node() {
}
/**
* Initializes the Nodes' data.

View File

@ -57,12 +57,8 @@ public class SimpleTreeNode<E> extends TreeNode<E> {
* @param rightNode Value to which the nodes' right child reference will be
* set.
*/
public SimpleTreeNode(
E data,
SimpleTreeNode<E> parentNode,
SimpleTreeNode<E> leftNode,
SimpleTreeNode<E> rightNode
) {
public SimpleTreeNode(E data, SimpleTreeNode<E> parentNode, SimpleTreeNode<E> leftNode,
SimpleTreeNode<E> rightNode) {
super(data, parentNode);
this.leftNode = leftNode;
this.rightNode = rightNode;