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 2016/05/17 21:31:13 UTC

[jira] [Updated] (SIS-296) Consider defining Angle as a subclass of java.lang.Number

     [ https://issues.apache.org/jira/browse/SIS-296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Desruisseaux updated SIS-296:
------------------------------------
    Affects Version/s: 0.7
        Fix Version/s:     (was: 0.7)
                       0.8

> Consider defining Angle as a subclass of java.lang.Number
> ---------------------------------------------------------
>
>                 Key: SIS-296
>                 URL: https://issues.apache.org/jira/browse/SIS-296
>             Project: Spatial Information Systems
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 0.6, 0.7
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>            Priority: Minor
>             Fix For: 0.8
>
>         Attachments: Angle.patch
>
>
> {{org.apache.sis.measure.Angle}} was intentionally defined as *not* extending {{java.lang.Number}}. In a previous library this was causing confusion. But a few tests suggest that this is not causing confusion anymore with Apache SIS design. Considering {{Angle}} as a kind of {{Number}} may help to reduce the amount of {{instanceof}} checks in code that are only interested in the numerical value.



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