mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: enable MissingSwitchDefault in checkstyle (#5179)
* Update directory * Update directory * Update directory * Update directory * add switch default --------- Co-authored-by: BamaCharanChhandogi <BamaCharanChhandogi@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9eaa2bb756
commit
37c2a96fe2
@@ -44,6 +44,9 @@ public final class Main {
|
||||
In.close();
|
||||
return;
|
||||
}
|
||||
default: {
|
||||
throw new IllegalArgumentException("Unexpected value: " + choice);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,6 +62,9 @@ public final class MainCuckooHashing {
|
||||
h.reHashTableIncreasesTableSize();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
throw new IllegalArgumentException("Unexpected value: " + choice);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user