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:
Bama Charan Chhandogi
2024-05-26 17:28:00 +05:30
committed by GitHub
parent 9eaa2bb756
commit 37c2a96fe2
7 changed files with 22 additions and 5 deletions

View File

@ -44,6 +44,9 @@ public final class Main {
In.close();
return;
}
default: {
throw new IllegalArgumentException("Unexpected value: " + choice);
}
}
}
}

View File

@ -62,6 +62,9 @@ public final class MainCuckooHashing {
h.reHashTableIncreasesTableSize();
break;
}
default: {
throw new IllegalArgumentException("Unexpected value: " + choice);
}
}
}
}