update dependency

This commit is contained in:
Looly 2019-12-12 10:00:53 +08:00
parent 83d3170942
commit 6992ea9ee1
5 changed files with 13 additions and 12 deletions

View File

@ -141,8 +141,8 @@ public class Base62Codec implements Serializable{
int remainder = 0;
for (int i = 0; i < source.length; i++) {
final int accumulator = (source[i] & 0xFF) + remainder * sourceBase;
for (byte b : source) {
final int accumulator = (b & 0xFF) + remainder * sourceBase;
final int digit = (accumulator - (accumulator % targetBase)) / targetBase;
remainder = accumulator % targetBase;

View File

@ -35,14 +35,15 @@ public class HexUtil {
final int index = (value.startsWith("-") ? 1 : 0);
if (value.startsWith("0x", index) || value.startsWith("0X", index) || value.startsWith("#", index)) {
try {
//noinspection ResultOfMethodCallIgnored
Long.decode(value);
} catch (NumberFormatException e) {
return false;
}
return true;
} else {
return false;
}
return false;
}
// ---------------------------------------------------------------------------------------------------- encode

View File

@ -20,10 +20,10 @@
<!-- versions -->
<c3p0.version>0.9.5.4</c3p0.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>
<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>
<hsqldb.version>2.5.0</hsqldb.version>
<jedis.version>3.1.0</jedis.version>
@ -120,7 +120,7 @@
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.8.jre7</version>
<version>42.2.9.jre7</version>
<scope>test</scope>
</dependency>
<dependency>

View File

@ -19,10 +19,10 @@
<properties>
<!-- versions -->
<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>
<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>
<mail.version>1.6.2</mail.version>
<jsch.version>0.1.55</jsch.version>
@ -153,7 +153,7 @@
<dependency>
<groupId>org.lionsoul</groupId>
<artifactId>jcseg-core</artifactId>
<version>2.5.0</version>
<version>2.6.0</version>
<optional>true</optional>
</dependency>
<dependency>
@ -191,7 +191,7 @@
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-smartcn</artifactId>
<version>8.3.0</version>
<version>8.3.1</version>
<optional>true</optional>
</dependency>
<dependency>

View File

@ -42,7 +42,7 @@
<!-- versions -->
<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>
</properties>