Skip to content

Commit 379e48a

Browse files
authored
Merge branch 'master' into dependabot/maven/org.apache.maven.plugins-maven-compiler-plugin-3.13.0
2 parents 94198e8 + f64bc3c commit 379e48a

9 files changed

+7
-19
lines changed

checkstyle.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147

148148
<!-- Modifier Checks -->
149149
<!-- See https://checkstyle.org/checks/modifier/index.html -->
150-
<!-- TODO <module name="ModifierOrder"/> -->
150+
<module name="ModifierOrder"/>
151151
<!-- TODO <module name="RedundantModifier"/> -->
152152

153153
<!-- Checks for blocks. You know, those {}'s -->

spotbugs-exclude.xml

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
<Match>
1818
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
1919
</Match>
20-
<Match>
21-
<Bug pattern="UC_USELESS_OBJECT" />
22-
</Match>
2320
<Match>
2421
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" />
2522
</Match>

src/main/java/com/thealgorithms/bitmanipulation/HighestSetBit.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public final class HighestSetBit {
1212
private HighestSetBit() {
1313
}
1414

15-
public final static Optional<Integer> findHighestSetBit(int num) {
15+
public static Optional<Integer> findHighestSetBit(int num) {
1616
if (num < 0) {
1717
throw new IllegalArgumentException("Input cannot be negative");
1818
}

src/main/java/com/thealgorithms/others/CountWords.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @author Marcus
55
*/
6-
final public class CountWords {
6+
public final class CountWords {
77
private CountWords() {
88
}
99

src/main/java/com/thealgorithms/others/EulersFunction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @brief utility class for <a href="https://en.wikipedia.org/wiki/Euler%27s_totient_function">Euler's totient function</a>
55
*/
6-
final public class EulersFunction {
6+
public final class EulersFunction {
77
private EulersFunction() {
88
}
99

src/main/java/com/thealgorithms/others/LowestBasePalindrome.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @brief Class for finding the lowest base in which a given integer is a palindrome.
77
cf. https://oeis.org/A016026
88
*/
9-
final public class LowestBasePalindrome {
9+
public final class LowestBasePalindrome {
1010
private LowestBasePalindrome() {
1111
}
1212

src/main/java/com/thealgorithms/others/SieveOfEratosthenes.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* @brief utility class implementing <a href="https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes">Sieve of Eratosthenes</a>
77
*/
8-
final public class SieveOfEratosthenes {
8+
public final class SieveOfEratosthenes {
99
private SieveOfEratosthenes() {
1010
}
1111

src/main/java/com/thealgorithms/others/cn/HammingDistance.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.thealgorithms.others.cn;
22

3-
final public class HammingDistance {
3+
public final class HammingDistance {
44
private HammingDistance() {
55
}
66

src/main/java/com/thealgorithms/sorts/MergeSortRecursive.java

-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.thealgorithms.sorts;
22

33
import java.util.ArrayList;
4-
import java.util.Arrays;
54
import java.util.List;
65

76
public class MergeSortRecursive {
@@ -59,11 +58,3 @@ private static List<Integer> sort(List<Integer> unsortedA, List<Integer> unsorte
5958
}
6059
}
6160
}
62-
63-
class App {
64-
65-
public static void main(String[] args) {
66-
MergeSortRecursive sort = new MergeSortRecursive(new ArrayList<>(Arrays.asList(4, 3, 1, 8, 5, 10, 0, 1, 4, 11, 8, 9)));
67-
sort.mergeSort();
68-
}
69-
}

0 commit comments

Comments
 (0)