mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
修复VersionComparator在极端数据排序时候违反了自反性问题
This commit is contained in:
parent
d3f9baf187
commit
b06885e2cd
@ -35,7 +35,7 @@ import java.util.regex.Pattern;
|
|||||||
public class VersionComparator extends NullComparator<String> implements Serializable {
|
public class VersionComparator extends NullComparator<String> implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static Pattern PATTERN_PRE_NUMBERS= Pattern.compile("^\\d+");
|
private static final Pattern PATTERN_PRE_NUMBERS= Pattern.compile("^\\d+");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单例
|
* 单例
|
||||||
|
Loading…
x
Reference in New Issue
Block a user