[ 
https://issues.apache.org/jira/browse/NET-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15891390#comment-15891390
 ] 

Sebb commented on NET-619:
--------------------------

Thanks, but the comments only say what the terms in the expression represent; 
they don't explain why the formula works.

Nor is there any indication why the code uses a long rather than an int.

> SubnetUtils creates a binary netmask in a bad way
> -------------------------------------------------
>
>                 Key: NET-619
>                 URL: https://issues.apache.org/jira/browse/NET-619
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: Makoto Sakaguchi
>            Priority: Minor
>
> SubnetUtils runs a for-loop to create a binary netmask.
> However, the way has been difficult to understand the program.
> I suggest to replace with a bit-shift, and it has been made a poll request on 
> GitHub.



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

Reply via email to