mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 01:35:16 +08:00
style: enable ParenPad
in checkstyle (#5226)
* enable ParenPad * style: enable ParenPad in checkstyle --------- Co-authored-by: Samuel Facchinello <samuel.facchinello@piksel.com>
This commit is contained in:

committed by
GitHub

parent
f8698674b3
commit
a2af09cdfb
@ -140,7 +140,7 @@
|
||||
<!-- TODO <module name="NoWhitespaceAfter"/> -->
|
||||
<module name="NoWhitespaceBefore"/>
|
||||
<module name="OperatorWrap"/>
|
||||
<!-- TODO <module name="ParenPad"/> -->
|
||||
<module name="ParenPad"/>
|
||||
<module name="TypecastParenPad"/>
|
||||
<module name="WhitespaceAfter"/>
|
||||
<!-- TODO <module name="WhitespaceAround"/> -->
|
||||
|
@ -57,9 +57,11 @@ class BellmanFord /*
|
||||
obj.go();
|
||||
}
|
||||
|
||||
public void go() { // shows distance to all vertices // Interactive run for understanding the
|
||||
try ( // class first time. Assumes source vertex is 0 and
|
||||
Scanner sc = new Scanner(System.in)) {
|
||||
public void go() {
|
||||
// shows distance to all vertices
|
||||
// Interactive run for understanding the
|
||||
// class first time. Assumes source vertex is 0 and
|
||||
try (Scanner sc = new Scanner(System.in)) {
|
||||
int i;
|
||||
int v;
|
||||
int e;
|
||||
|
Reference in New Issue
Block a user