commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (NET-625) SubnetUtils - improve construction
Date Sat, 11 Mar 2017 14:59:04 GMT

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

Sebb resolved NET-625.
----------------------
       Resolution: Fixed
    Fix Version/s: 3.7

URL: http://svn.apache.org/viewvc?rev=1786511&view=rev
Log:
NET-625 SubnetUtils - improve construction
Also make most fields final

Modified:
    commons/proper/net/trunk/src/changes/changes.xml
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/SubnetUtils.java


> SubnetUtils - improve construction
> ----------------------------------
>
>                 Key: NET-625
>                 URL: https://issues.apache.org/jira/browse/NET-625
>             Project: Commons Net
>          Issue Type: Improvement
>    Affects Versions: 3.6
>            Reporter: Sebb
>             Fix For: 3.7
>
>
> The constructors for CIDR format and (address, mask) format both use the same calculate()
method. This assumes the input is in CIDR format, which means that the constructor which handles
(address, mask) format has to convert the strings to binary and then recreate the CIDR format.
> This is wasteful.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message