From fd4e3f37619d6ecd6c5d52afac7071892b1eff86 Mon Sep 17 00:00:00 2001 From: Samuel Facchinello Date: Thu, 13 Jun 2024 18:26:34 +0200 Subject: [PATCH 1/2] enable ParenPad --- checkstyle.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkstyle.xml b/checkstyle.xml index cb4ee54670ac..b65291b8ffa8 100644 --- a/checkstyle.xml +++ b/checkstyle.xml @@ -140,7 +140,7 @@ - + From 65c046430f3fd7c9740fcf4fd9731e7fe8b4de8b Mon Sep 17 00:00:00 2001 From: Samuel Facchinello Date: Thu, 13 Jun 2024 18:26:48 +0200 Subject: [PATCH 2/2] style: enable ParenPad in checkstyle --- .../thealgorithms/datastructures/graphs/BellmanFord.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java b/src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java index 522e19787e8c..47c5f0d0b98e 100644 --- a/src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java +++ b/src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java @@ -57,9 +57,11 @@ public static void main(String[] args) { 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;