mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-23 20:44:39 +08:00
style: enable ModifierOrder
in checkstyle (#5132)
* style: enable `ModifierOrder` in checkstyle * style: remove redundant `final` Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com> --------- Co-authored-by: Maria Paszkiewicz SCC <maria.paszkiewicz@kit.edu> Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
This commit is contained in:
@ -12,7 +12,7 @@ public final class HighestSetBit {
|
||||
private HighestSetBit() {
|
||||
}
|
||||
|
||||
public final static Optional<Integer> findHighestSetBit(int num) {
|
||||
public static Optional<Integer> findHighestSetBit(int num) {
|
||||
if (num < 0) {
|
||||
throw new IllegalArgumentException("Input cannot be negative");
|
||||
}
|
||||
|
Reference in New Issue
Block a user