mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Goldstein Lyor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SSHD-494) Convert ECCurves class into an enum
Date Sun, 21 Jun 2015 07:28:00 GMT

    [ https://issues.apache.org/jira/browse/SSHD-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14594983#comment-14594983

Goldstein Lyor commented on SSHD-494:

Adding more curves support (e.g., SSHD-440) would mean simply adding new enum constants

> Convert ECCurves class into an enum
> -----------------------------------
>                 Key: SSHD-494
>                 URL: https://issues.apache.org/jira/browse/SSHD-494
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 1.0.0
>            Reporter: Goldstein Lyor
>            Assignee: Goldstein Lyor
>             Fix For: 1.0.0
> The current code contains information about each specific curve spread among several
methods, lists, maps, etc, with inconsistent behavior (e.g., some methods throw an exception
if no matching curve found, others return _nulll_). By using enum(s) we will consolidate the
information for each curve into its relevant constant body, and also facilitate adding new
curves in the future.

This message was sent by Atlassian JIRA

View raw message