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