Citation.getIdentifiers() should returns Set<Identifier>
--------------------------------------------------------

                 Key: GEOT-1599
                 URL: http://jira.codehaus.org/browse/GEOT-1599
             Project: GeoTools
          Issue Type: Bug
          Components: core metadata
    Affects Versions: 2.5-M0, 2.4-RC0
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
             Fix For: 2.5-M1


{{CitationsImpl.getIdentifiers()}} is expected to return a collection of 
{{Identifier}}, not a collection of {{String}}. This bug has been unoticed 
until we started to apply Java 5 parameterized types on GeoTools trunk. The fix 
requires to scan GeoTools code base and replace every occurences of:

{code:java}
if (citation.getIdentifiers().equals("EPSG"))
{code}

by

{code:java}
if (Citations.identifierMatches(citation, "EPSG"))
{code}

The fix has been applied on GeoTools trunk. Users need to apply it on their own 
code. We strongly encourage usage of parameterized types as much as possible 
since it will help to catch mismatches in {{Citations.getIdentifiers()}} usage.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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