Skip to content

Commit a2af09c

Browse files
samuelfacSamuel Facchinello
and
Samuel Facchinello
authored
style: enable ParenPad in checkstyle (#5226)
* enable ParenPad * style: enable ParenPad in checkstyle --------- Co-authored-by: Samuel Facchinello <[email protected]>
1 parent f869867 commit a2af09c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

checkstyle.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
<!-- TODO <module name="NoWhitespaceAfter"/> -->
141141
<module name="NoWhitespaceBefore"/>
142142
<module name="OperatorWrap"/>
143-
<!-- TODO <module name="ParenPad"/> -->
143+
<module name="ParenPad"/>
144144
<module name="TypecastParenPad"/>
145145
<module name="WhitespaceAfter"/>
146146
<!-- TODO <module name="WhitespaceAround"/> -->

src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ public static void main(String[] args) {
5757
obj.go();
5858
}
5959

60-
public void go() { // shows distance to all vertices // Interactive run for understanding the
61-
try ( // class first time. Assumes source vertex is 0 and
62-
Scanner sc = new Scanner(System.in)) {
60+
public void go() {
61+
// shows distance to all vertices
62+
// Interactive run for understanding the
63+
// class first time. Assumes source vertex is 0 and
64+
try (Scanner sc = new Scanner(System.in)) {
6365
int i;
6466
int v;
6567
int e;

0 commit comments

Comments
 (0)