Removed the last anonymous inner class generated for switch-on-enum