change code

This commit is contained in:
looly 2021-12-12 09:45:13 +08:00
parent f7db6c75d5
commit 480b99a727

View File

@ -106,7 +106,7 @@ public class IdUtil {
* @param workerId 终端ID * @param workerId 终端ID
* @param datacenterId 数据中心ID * @param datacenterId 数据中心ID
* @return {@link Snowflake} * @return {@link Snowflake}
* @deprecated 此方法容易产生多个Snowflake实例产生的ID会产生重复此对象在单台机器上必须单例 * @deprecated 此方法容易产生多个Snowflake实例产生的ID会产生重复此对象在单台机器上必须单例
*/ */
@Deprecated @Deprecated
public static Snowflake createSnowflake(long workerId, long datacenterId) { public static Snowflake createSnowflake(long workerId, long datacenterId) {