commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Resolved] (NUMBERS-3) Make "RootsOfUnity" immutable
Date Sat, 21 Jan 2017 18:16:26 GMT


Gilles resolved NUMBERS-3.
    Resolution: Fixed

commit b206d9c80c95433d530e639308e38b92c7e3fdef

> Make "RootsOfUnity" immutable
> -----------------------------
>                 Key: NUMBERS-3
>                 URL:
>             Project: Commons Numbers
>          Issue Type: Improvement
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>              Labels: api, immutable, serialization
> The computation could be performed in the constructor, allowing
> all fields to be made "final".
> Synchronized methods would become unnecessary to ensure thread-safety, and numerous checks
(to guard against a non-initialized instance) could be dropped.
> Overall the code can be simplified at the cost of dropping the "clockwise" store (see
current version).
> An accessor method to get the each of the roots as a {{Complex}} should be provided,
to replace the current separate retrieval of its real and imaginary parts.
> Also this class should not be {{Serializable}}.

This message was sent by Atlassian JIRA

View raw message