Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
style: enable WhitespaceAround in checktyle
  • Loading branch information
vil02 authored and yanglbme committed Jun 24, 2024
commit c1832e476a6a846b23bd9c46769f27fda65cc6a2
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