As a part of the switch-over to JDK 1.5, I think we also should clean up some of the oldover methods and constants cruft. Examples:
UTF16 stuff in:
Some of this refactoring can be done fairly easily in Eclipse. Example:
The following perform the same functions.
To fix the situation, do the following:
Change the implementation of UTF16 to just call the JDK.
Copy the changed method
Select the changed method, add @deprecated, and Rightclick>Source>Toggle Comment to comment it out.
Paste the changed method.
Select the changed method name, and Rightclick>Refactor>Inline.
Uncomment the changed method.
This causes all of the instances in the code base (and we should do CLDR at the same time), to change to use the JDK method, but leaves the old method active so we don't break people.
I haven't investigated doing the JDK classes, but I think they can be done with a search and replace of all instances in the code base that are not public/protected parameters (even in the APIs, we might be able to broaden to Map<X,Y>, etc. in some cases).