Martin Desruisseaux ha scritto:
> Simone Giannecchini a écrit :
>> These hints were introduce by aaime. The only concern I could have
>> against turning them into an enum draws from the desire to backport to
>> 2.4.x.
> 
> If we wish to port the enum to GeoTools 2.4, we can apply the "Replace Enum by
> Classes" approach described here:
> 
> http://java.sun.com/developer/Books/shiftintojava/page1.html#replaceenums

I would prefer to avoid adding new concepts into the mix.
The idiomatic way to make an enum in java5 is the enum language syntax. 
Use it, I'm +1 on making the change on trunk.

The idiomatic way to make enums pre java5 is lists of integers, as the
jdk extensively shows. Let's keep on it when we backport to 2.4.x

Just my 2 cents.
Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to