theunsgis a écrit :
> Set categories = Collections.singleton(new Class[]
> {MathTransformProvider.class});
Use either:
Collections.singleton(MathTransformProvider.class);
or
Arrays.asList(new Class[] {MathTransformProvider.class});
but not
Collections.singleton(new Class[] {MathTransformProvider.class});
The above create a collection containing only one element where this element is
an array. We want element to be class.
If you compile with Java 5, I suggest to leverage generic types. If the Set was
declared as below:
Set<Class<?>> categories
the compiler would have catched the error.
Martin
-------------------------------------------------------------------------
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-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users