This commit is contained in:
Looly 2023-05-10 12:28:19 +08:00
parent 5aa5436c25
commit 9b0f9f43cd

View File

@ -365,7 +365,7 @@ public class Ipv4Util implements Ipv4Pool {
* @return 掩码位例如 24 * @return 掩码位例如 24
* @throws IllegalArgumentException 子网掩码非法 * @throws IllegalArgumentException 子网掩码非法
*/ */
public static Integer getMaskBitByMask(final String mask) { public static int getMaskBitByMask(final String mask) {
final Integer maskBit = MaskBit.getMaskBit(mask); final Integer maskBit = MaskBit.getMaskBit(mask);
Assert.notNull(maskBit, "Invalid netmask{}", mask); Assert.notNull(maskBit, "Invalid netmask{}", mask);
return maskBit; return maskBit;