mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-06 17:29:31 +08:00
style: enable WhitespaceAround
in checktyle (#5241)
This commit is contained in:
@ -143,7 +143,7 @@
|
|||||||
<module name="ParenPad"/>
|
<module name="ParenPad"/>
|
||||||
<module name="TypecastParenPad"/>
|
<module name="TypecastParenPad"/>
|
||||||
<module name="WhitespaceAfter"/>
|
<module name="WhitespaceAfter"/>
|
||||||
<!-- TODO <module name="WhitespaceAround"/> -->
|
<module name="WhitespaceAround"/>
|
||||||
|
|
||||||
<!-- Modifier Checks -->
|
<!-- Modifier Checks -->
|
||||||
<!-- See https://checkstyle.org/checks/modifier/index.html -->
|
<!-- See https://checkstyle.org/checks/modifier/index.html -->
|
||||||
|
@ -19,7 +19,8 @@ import java.util.Arrays;
|
|||||||
|
|
||||||
public final class UniquePaths {
|
public final class UniquePaths {
|
||||||
|
|
||||||
private UniquePaths(){};
|
private UniquePaths() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates the number of unique paths using a 1D dynamic programming array.
|
* Calculates the number of unique paths using a 1D dynamic programming array.
|
||||||
|
@ -59,7 +59,7 @@ class MeansTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void geometricMeanMultipleNumbers() {
|
void geometricMeanMultipleNumbers() {
|
||||||
LinkedList<Double> numbers = new LinkedList<>() {};
|
LinkedList<Double> numbers = new LinkedList<>();
|
||||||
numbers.addAll(Lists.newArrayList(1d, 2d, 3d, 4d, 5d, 6d, 1.25));
|
numbers.addAll(Lists.newArrayList(1d, 2d, 3d, 4d, 5d, 6d, 1.25));
|
||||||
assertEquals(2.6426195539300585, Means.geometric(numbers));
|
assertEquals(2.6426195539300585, Means.geometric(numbers));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user