删去utils.uuid下 IdUtils类中 多余的import(同包下的UUID类)
正在显示
1 个修改的文件
包含
5 行增加
和
12 行删除
| 1 | package com.ruoyi.common.utils.uuid; | 1 | package com.ruoyi.common.utils.uuid; |
| 2 | 2 | ||
| 3 | -import com.ruoyi.common.utils.uuid.UUID; | ||
| 4 | - | ||
| 5 | /** | 3 | /** |
| 6 | * ID生成器工具类 | 4 | * ID生成器工具类 |
| 7 | * | 5 | * |
| 8 | * @author ruoyi | 6 | * @author ruoyi |
| 9 | */ | 7 | */ |
| 10 | -public class IdUtils | ||
| 11 | -{ | 8 | +public class IdUtils { |
| 12 | /** | 9 | /** |
| 13 | * 获取随机UUID | 10 | * 获取随机UUID |
| 14 | * | 11 | * |
| 15 | * @return 随机UUID | 12 | * @return 随机UUID |
| 16 | */ | 13 | */ |
| 17 | - public static String randomUUID() | ||
| 18 | - { | 14 | + public static String randomUUID() { |
| 19 | return UUID.randomUUID().toString(); | 15 | return UUID.randomUUID().toString(); |
| 20 | } | 16 | } |
| 21 | 17 | ||
| @@ -24,8 +20,7 @@ public class IdUtils | @@ -24,8 +20,7 @@ public class IdUtils | ||
| 24 | * | 20 | * |
| 25 | * @return 简化的UUID,去掉了横线 | 21 | * @return 简化的UUID,去掉了横线 |
| 26 | */ | 22 | */ |
| 27 | - public static String simpleUUID() | ||
| 28 | - { | 23 | + public static String simpleUUID() { |
| 29 | return UUID.randomUUID().toString(true); | 24 | return UUID.randomUUID().toString(true); |
| 30 | } | 25 | } |
| 31 | 26 | ||
| @@ -34,8 +29,7 @@ public class IdUtils | @@ -34,8 +29,7 @@ public class IdUtils | ||
| 34 | * | 29 | * |
| 35 | * @return 随机UUID | 30 | * @return 随机UUID |
| 36 | */ | 31 | */ |
| 37 | - public static String fastUUID() | ||
| 38 | - { | 32 | + public static String fastUUID() { |
| 39 | return UUID.fastUUID().toString(); | 33 | return UUID.fastUUID().toString(); |
| 40 | } | 34 | } |
| 41 | 35 | ||
| @@ -44,8 +38,7 @@ public class IdUtils | @@ -44,8 +38,7 @@ public class IdUtils | ||
| 44 | * | 38 | * |
| 45 | * @return 简化的UUID,去掉了横线 | 39 | * @return 简化的UUID,去掉了横线 |
| 46 | */ | 40 | */ |
| 47 | - public static String fastSimpleUUID() | ||
| 48 | - { | 41 | + public static String fastSimpleUUID() { |
| 49 | return UUID.fastUUID().toString(true); | 42 | return UUID.fastUUID().toString(true); |
| 50 | } | 43 | } |
| 51 | } | 44 | } |
-
请 注册 或 登录 后发表评论