-
Enhancement
-
Resolution: Fixed
-
P3
-
6
-
None
-
b98
-
x86
-
windows_xp
Most of the demos were written long ago and do not serve as good representatives of how to code in Java today. We don't have time or the testing resources to fix all of them for Mustang, but we could fix Java2D.
Principally we would:
1. Where possible, replace uses of Vector with List/ArrayList and uses of Hashtable with Map/HashMap. Of course, concurrency is a concern here.
2. Introduce generics, particularly for the collections.
3. Replace old-style loops with the new for-in loops.
It might make sense to introduce an enum or two or make other minor changes as well, and we might improve the inline documentation in the process.
Principally we would:
1. Where possible, replace uses of Vector with List/ArrayList and uses of Hashtable with Map/HashMap. Of course, concurrency is a concern here.
2. Introduce generics, particularly for the collections.
3. Replace old-style loops with the new for-in loops.
It might make sense to introduce an enum or two or make other minor changes as well, and we might improve the inline documentation in the process.