You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by "Martin Desruisseaux (JIRA)" <ji...@apache.org> on 2015/03/17 13:31:39 UTC

[jira] [Created] (SIS-194) DefaultResolution.isEmpty() and prune() do not detect when RepresentativeFraction is empty

Martin Desruisseaux created SIS-194:
---------------------------------------

             Summary: DefaultResolution.isEmpty() and prune() do not detect when RepresentativeFraction is empty
                 Key: SIS-194
                 URL: https://issues.apache.org/jira/browse/SIS-194
             Project: Spatial Information Systems
          Issue Type: Bug
          Components: Metadata
    Affects Versions: 0.5, 0.4, 0.3
            Reporter: Martin Desruisseaux
            Assignee: Martin Desruisseaux
            Priority: Minor
             Fix For: 0.6


Newly constructed {{DefaultRepresentativeFraction}}, or instance on which {{setScale(Double.NaN)}} has been invoked, should be considered empty. But call to {{DefaultResolution.isEmpty()}} does not detect those cases.

This because unlike all other metadata object, {{DefaultRepresentativeFraction}} does not extend {{AbstractMetadata}}. It extends {{Number}} instead. The fix to to have {{DefaultRepresentativeFraction}} to implement the {{Emptiable}} interface.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)