rm ignore file

master
ehlxr 2018-11-16 16:20:23 +08:00
parent d0b2f7e6b1
commit 7d521f0910
1 changed files with 2 additions and 2 deletions

View File

@ -70,10 +70,10 @@ public class SnowFlake {
*/
public SnowFlake(long datacenterId, long machineId) {
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) {
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.machineId = machineId;