From a2af09cdfb9606c4818bbf98d188de77a6834dcc Mon Sep 17 00:00:00 2001 From: Samuel Facchinello <4256795+samuelfac@users.noreply.github.com> Date: Thu, 13 Jun 2024 19:25:43 +0200 Subject: [PATCH] style: enable `ParenPad` in checkstyle (#5226) * enable ParenPad * style: enable ParenPad in checkstyle --------- Co-authored-by: Samuel Facchinello --- checkstyle.xml | 2 +- .../thealgorithms/datastructures/graphs/BellmanFord.java | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/checkstyle.xml b/checkstyle.xml index cb4ee5467..b65291b8f 100644 --- a/checkstyle.xml +++ b/checkstyle.xml @@ -140,7 +140,7 @@ - + diff --git a/src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java b/src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java index 522e19787..47c5f0d0b 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 @@ 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;