mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复VersionComparator在极端数据排序时候违反了自反性问题
This commit is contained in:
@@ -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+");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单例
|
* 单例
|
||||||
|
Reference in New Issue
Block a user