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:
Samuel Facchinello
2024-06-13 19:25:43 +02:00
committed by GitHub
parent f8698674b3
commit a2af09cdfb
2 changed files with 6 additions and 4 deletions

View File

@ -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"/> -->

View File

@ -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;