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/09/07 21:56:45 UTC
[jira] [Created] (SIS-296) Consider defining Angle as a subclass of
java.lang.Number
Martin Desruisseaux created SIS-296:
---------------------------------------
Summary: 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
Reporter: Martin Desruisseaux
Assignee: Martin Desruisseaux
Priority: Minor
Fix For: 0.7
{{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)