Skip to content

Commit 06a284f

Browse files
marysiuniqMaria Paszkiewicz SCCvil02
authored
style: enable ModifierOrder in checkstyle (#5132)
* style: enable `ModifierOrder` in checkstyle * style: remove redundant `final` Co-authored-by: Piotr Idzik <[email protected]> --------- Co-authored-by: Maria Paszkiewicz SCC <[email protected]> Co-authored-by: Piotr Idzik <[email protected]>
1 parent fd65892 commit 06a284f

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
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 -->

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

0 commit comments

Comments
 (0)