mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-05 16:27:33 +08:00
style: enable WhitespaceAround
in checktyle (#5241)
This commit is contained in:
@ -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 -->
|
||||
|
@ -19,7 +19,8 @@ import java.util.Arrays;
|
||||
|
||||
public final class UniquePaths {
|
||||
|
||||
private UniquePaths(){};
|
||||
private UniquePaths() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates the number of unique paths using a 1D dynamic programming array.
|
||||
|
@ -59,7 +59,7 @@ class MeansTest {
|
||||
|
||||
@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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user