rm ignore file

This commit is contained in:
ehlxr 2018-11-16 16:20:23 +08:00
parent d0b2f7e6b1
commit 7d521f0910

View File

@ -70,10 +70,10 @@ public class SnowFlake {
*/ */
public SnowFlake(long datacenterId, long machineId) { public SnowFlake(long datacenterId, long machineId) {
if (datacenterId > MAX_DATACENTER_NUM || datacenterId < 0) { if (datacenterId > MAX_DATACENTER_NUM || datacenterId < 0) {
throw new IllegalArgumentException("datacenterId can't be greater than MAX_DATACENTER_NUM or less than 0"); throw new IllegalArgumentException("datacenterId can't be greater than " + MAX_DATACENTER_NUM + " or less than 0");
} }
if (machineId > MAX_MACHINE_NUM || machineId < 0) { if (machineId > MAX_MACHINE_NUM || machineId < 0) {
throw new IllegalArgumentException("machineId can't be greater than MAX_MACHINE_NUM or less than 0"); throw new IllegalArgumentException("machineId can't be greater than " + MAX_MACHINE_NUM + " or less than 0");
} }
this.datacenterId = datacenterId; this.datacenterId = datacenterId;
this.machineId = machineId; this.machineId = machineId;