mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
update dependency
This commit is contained in:
parent
83d3170942
commit
6992ea9ee1
@ -141,8 +141,8 @@ public class Base62Codec implements Serializable{
|
|||||||
|
|
||||||
int remainder = 0;
|
int remainder = 0;
|
||||||
|
|
||||||
for (int i = 0; i < source.length; i++) {
|
for (byte b : source) {
|
||||||
final int accumulator = (source[i] & 0xFF) + remainder * sourceBase;
|
final int accumulator = (b & 0xFF) + remainder * sourceBase;
|
||||||
final int digit = (accumulator - (accumulator % targetBase)) / targetBase;
|
final int digit = (accumulator - (accumulator % targetBase)) / targetBase;
|
||||||
|
|
||||||
remainder = accumulator % targetBase;
|
remainder = accumulator % targetBase;
|
||||||
|
@ -35,14 +35,15 @@ public class HexUtil {
|
|||||||
final int index = (value.startsWith("-") ? 1 : 0);
|
final int index = (value.startsWith("-") ? 1 : 0);
|
||||||
if (value.startsWith("0x", index) || value.startsWith("0X", index) || value.startsWith("#", index)) {
|
if (value.startsWith("0x", index) || value.startsWith("0X", index) || value.startsWith("#", index)) {
|
||||||
try {
|
try {
|
||||||
|
//noinspection ResultOfMethodCallIgnored
|
||||||
Long.decode(value);
|
Long.decode(value);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------------------------- encode
|
// ---------------------------------------------------------------------------------------------------- encode
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
<!-- versions -->
|
<!-- versions -->
|
||||||
<c3p0.version>0.9.5.4</c3p0.version>
|
<c3p0.version>0.9.5.4</c3p0.version>
|
||||||
<dbcp2.version>2.7.0</dbcp2.version>
|
<dbcp2.version>2.7.0</dbcp2.version>
|
||||||
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
|
<tomcat-jdbc.version>9.0.29</tomcat-jdbc.version>
|
||||||
<druid.version>1.1.21</druid.version>
|
<druid.version>1.1.21</druid.version>
|
||||||
<hikariCP.version>2.4.13</hikariCP.version>
|
<hikariCP.version>2.4.13</hikariCP.version>
|
||||||
<mongo.version>3.11.2</mongo.version>
|
<mongo.version>3.12.0</mongo.version>
|
||||||
<sqlite.version>3.28.0</sqlite.version>
|
<sqlite.version>3.28.0</sqlite.version>
|
||||||
<hsqldb.version>2.5.0</hsqldb.version>
|
<hsqldb.version>2.5.0</hsqldb.version>
|
||||||
<jedis.version>3.1.0</jedis.version>
|
<jedis.version>3.1.0</jedis.version>
|
||||||
@ -120,7 +120,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.postgresql</groupId>
|
<groupId>org.postgresql</groupId>
|
||||||
<artifactId>postgresql</artifactId>
|
<artifactId>postgresql</artifactId>
|
||||||
<version>42.2.8.jre7</version>
|
<version>42.2.9.jre7</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<!-- versions -->
|
<!-- versions -->
|
||||||
<velocity.version>2.1</velocity.version>
|
<velocity.version>2.1</velocity.version>
|
||||||
<beetl.version>3.0.13.RELEASE</beetl.version>
|
<beetl.version>3.0.15.RELEASE</beetl.version>
|
||||||
<rythm.version>1.3.0</rythm.version>
|
<rythm.version>1.3.0</rythm.version>
|
||||||
<freemarker.version>2.3.29</freemarker.version>
|
<freemarker.version>2.3.29</freemarker.version>
|
||||||
<enjoy.version>4.7</enjoy.version>
|
<enjoy.version>4.8</enjoy.version>
|
||||||
<thymeleaf.version>3.0.11.RELEASE</thymeleaf.version>
|
<thymeleaf.version>3.0.11.RELEASE</thymeleaf.version>
|
||||||
<mail.version>1.6.2</mail.version>
|
<mail.version>1.6.2</mail.version>
|
||||||
<jsch.version>0.1.55</jsch.version>
|
<jsch.version>0.1.55</jsch.version>
|
||||||
@ -153,7 +153,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.lionsoul</groupId>
|
<groupId>org.lionsoul</groupId>
|
||||||
<artifactId>jcseg-core</artifactId>
|
<artifactId>jcseg-core</artifactId>
|
||||||
<version>2.5.0</version>
|
<version>2.6.0</version>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -191,7 +191,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.lucene</groupId>
|
<groupId>org.apache.lucene</groupId>
|
||||||
<artifactId>lucene-analyzers-smartcn</artifactId>
|
<artifactId>lucene-analyzers-smartcn</artifactId>
|
||||||
<version>8.3.0</version>
|
<version>8.3.1</version>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
2
pom.xml
2
pom.xml
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
<!-- versions -->
|
<!-- versions -->
|
||||||
<compile.version>8</compile.version>
|
<compile.version>8</compile.version>
|
||||||
<junit.version>4.13-rc-1</junit.version>
|
<junit.version>4.13-rc-2</junit.version>
|
||||||
<lombok.version>1.18.10</lombok.version>
|
<lombok.version>1.18.10</lombok.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user