Fix bug with the Event class failing to compile because of an issue with...

Fix bug with the Event class failing to compile because of an issue with annotation parsing.

Details:
The annotations failed to parse because there was a public enum inside the class. So strange! I will post to stackoverflow.