You can just use the existing code, with the following notes:
- assert has become a keyword since
Java 1.4, and enum since Java 5.0. If you have variables or methods with either name you will need to rename it.
- you may get compiler warnings when you're combining generics with non-generics. Read
this for more information.