sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SIS-296) Consider defining Angle as a subclass of java.lang.Number
Date Tue, 17 May 2016 21:31:13 GMT

     [ 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)

Mime
View raw message