mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-02 11:49:07 +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 {
|
||||
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…
Reference in New Issue
Block a user