mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
5aa5436c25
commit
9b0f9f43cd
@ -365,7 +365,7 @@ public class Ipv4Util implements Ipv4Pool {
|
||||
* @return 掩码位,例如 24
|
||||
* @throws IllegalArgumentException 子网掩码非法
|
||||
*/
|
||||
public static Integer getMaskBitByMask(final String mask) {
|
||||
public static int getMaskBitByMask(final String mask) {
|
||||
final Integer maskBit = MaskBit.getMaskBit(mask);
|
||||
Assert.notNull(maskBit, "Invalid netmask:{}", mask);
|
||||
return maskBit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user