Removed redundant throws declaration
Handling default cases for switch statements