mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix commeent
This commit is contained in:
parent
7abb318e31
commit
f88e7ab2f3
@ -10,6 +10,7 @@
|
||||
* 【core 】 CharSequenceUtil增加normalize方法(pr#444@Gitee)
|
||||
* 【core 】 MailAccount增加setEncodefilename()方法,可选是否编码附件的文件名(issue#I4F160@Gitee)
|
||||
* 【core 】 MailAccount中charset增加null时的默认规则
|
||||
* 【core 】 NumberUtil.compare修正注释说明(issue#I4FAJ1@Gitee)
|
||||
|
||||
### 🐞Bug修复
|
||||
|
||||
|
@ -1675,12 +1675,12 @@ public class NumberUtil {
|
||||
*
|
||||
* @param x 第一个值
|
||||
* @param y 第二个值
|
||||
* @return x==y返回0,x<y返回-1,x>y返回1
|
||||
* @return x==y返回0,x<y返回小于0的数,x>y返回大于0的数
|
||||
* @see Character#compare(char, char)
|
||||
* @since 3.0.1
|
||||
*/
|
||||
public static int compare(char x, char y) {
|
||||
return x - y;
|
||||
return Character.compare(x, y);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1688,7 +1688,7 @@ public class NumberUtil {
|
||||
*
|
||||
* @param x 第一个值
|
||||
* @param y 第二个值
|
||||
* @return x==y返回0,x<y返回-1,x>y返回1
|
||||
* @return x==y返回0,x<y返回小于0的数,x>y返回大于0的数
|
||||
* @see Double#compare(double, double)
|
||||
* @since 3.0.1
|
||||
*/
|
||||
@ -1701,7 +1701,7 @@ public class NumberUtil {
|
||||
*
|
||||
* @param x 第一个值
|
||||
* @param y 第二个值
|
||||
* @return x==y返回0,x<y返回-1,x>y返回1
|
||||
* @return x==y返回0,x<y返回小于0的数,x>y返回大于0的数
|
||||
* @see Integer#compare(int, int)
|
||||
* @since 3.0.1
|
||||
*/
|
||||
@ -1714,7 +1714,7 @@ public class NumberUtil {
|
||||
*
|
||||
* @param x 第一个值
|
||||
* @param y 第二个值
|
||||
* @return x==y返回0,x<y返回-1,x>y返回1
|
||||
* @return x==y返回0,x<y返回小于0的数,x>y返回大于0的数
|
||||
* @see Long#compare(long, long)
|
||||
* @since 3.0.1
|
||||
*/
|
||||
@ -1727,7 +1727,7 @@ public class NumberUtil {
|
||||
*
|
||||
* @param x 第一个值
|
||||
* @param y 第二个值
|
||||
* @return x==y返回0,x<y返回-1,x>y返回1
|
||||
* @return x==y返回0,x<y返回小于0的数,x>y返回大于0的数
|
||||
* @see Short#compare(short, short)
|
||||
* @since 3.0.1
|
||||
*/
|
||||
@ -1754,7 +1754,7 @@ public class NumberUtil {
|
||||
* @param bigNum1 数字1
|
||||
* @param bigNum2 数字2
|
||||
* @return 是否大于
|
||||
* @since 3, 0.9
|
||||
* @since 3.0.9
|
||||
*/
|
||||
public static boolean isGreater(BigDecimal bigNum1, BigDecimal bigNum2) {
|
||||
Assert.notNull(bigNum1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user