Browse Source

rename to ConsoleTable

Looly 5 years ago
parent
commit
17cacc4a03
1 changed files with 5 additions and 4 deletions
  1. 5 4
      hutool-core/src/main/java/cn/hutool/core/util/RandomUtil.java

+ 5 - 4
hutool-core/src/main/java/cn/hutool/core/util/RandomUtil.java

@@ -48,8 +48,8 @@ public class RandomUtil {
 	 * ThreadLocalRandom是JDK 7之后提供并发产生随机数,能够解决多个线程发生的竞争争夺。
 	 * ThreadLocalRandom是JDK 7之后提供并发产生随机数,能够解决多个线程发生的竞争争夺。
 	 *
 	 *
 	 * <p>
 	 * <p>
-	 *     注意:此方法返回的{@link ThreadLocalRandom}不可以在多线程环境下共享对象,否则有重复随机数问题。
-	 *     见:https://www.jianshu.com/p/89dfe990295c
+	 * 注意:此方法返回的{@link ThreadLocalRandom}不可以在多线程环境下共享对象,否则有重复随机数问题。
+	 * 见:https://www.jianshu.com/p/89dfe990295c
 	 * </p>
 	 * </p>
 	 *
 	 *
 	 * @return {@link ThreadLocalRandom}
 	 * @return {@link ThreadLocalRandom}
@@ -522,9 +522,10 @@ public class RandomUtil {
 	 *
 	 *
 	 * @return 随机颜色
 	 * @return 随机颜色
 	 * @since 4.1.5
 	 * @since 4.1.5
-	 * @deprecated 使用{@link ImgUtil#randomColor()}
+	 * @deprecated 使用ImgUtil.randomColor()
 	 */
 	 */
-		public static Color randomColor() {
+	@Deprecated
+	public static Color randomColor() {
 		final Random random = getRandom();
 		final Random random = getRandom();
 		return new Color(random.nextInt(256), random.nextInt(256), random.nextInt(256));
 		return new Color(random.nextInt(256), random.nextInt(256), random.nextInt(256));
 	}
 	}