Skip to content

Commit

Permalink
style: enable WhitespaceAround in checktyle
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Jun 23, 2024
1 parent 308bdcf commit 7c28339
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
<module name="ParenPad"/>
<module name="TypecastParenPad"/>
<module name="WhitespaceAfter"/>
<!-- TODO <module name="WhitespaceAround"/> -->
<module name="WhitespaceAround"/>

<!-- Modifier Checks -->
<!-- See https://checkstyle.org/checks/modifier/index.html -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

public final class UniquePaths {

private UniquePaths(){};
private UniquePaths() {
}

/**
* Calculates the number of unique paths using a 1D dynamic programming array.
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/thealgorithms/maths/MeansTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void arithmeticMeanMultipleNumbers() {

@Test
void geometricMeanMultipleNumbers() {
LinkedList<Double> numbers = new LinkedList<>() {};
LinkedList<Double> numbers = new LinkedList<>();
numbers.addAll(Lists.newArrayList(1d, 2d, 3d, 4d, 5d, 6d, 1.25));
assertEquals(2.6426195539300585, Means.geometric(numbers));
}
Expand Down

0 comments on commit 7c28339

Please sign in to comment.