change to private

This commit is contained in:
looly 2021-11-30 17:36:45 +08:00
parent cc72350385
commit f07f786493
4 changed files with 7 additions and 6 deletions

View File

@ -29,6 +29,7 @@
* 【core 】 CopyOptions增加override配置issue#I4JQ1N@Gitee
* 【poi 】 SheetRidReader可以获取所有sheet名issue#I4JA3M@Gitee
* 【core 】 AsyncUtil.waitAny增加返回值pr#473@Gitee
* 【core 】 Calculator.compare改为privateissue#1982@Github
*
### 🐞Bug修复
* 【core 】 修复FileResource构造fileName参数无效问题issue#1942@Github

View File

@ -154,7 +154,7 @@ public class Calculator {
* @param peek peek
* @return 优先级
*/
public boolean compare(char cur, char peek) {// 如果是peek优先级高于cur返回true默认都是peek优先级要低
private boolean compare(char cur, char peek) {// 如果是peek优先级高于cur返回true默认都是peek优先级要低
final int offset = 40;
if(cur == '%'){
// %优先级最高
@ -165,7 +165,7 @@ public class Calculator {
peek = 47;
}
return operatPriority[(peek) - offset] >= operatPriority[(cur) - offset];
return operatPriority[peek - offset] >= operatPriority[cur - offset];
}
/**

View File

@ -81,7 +81,7 @@
<dependency>
<groupId>com.github.chris2018998</groupId>
<artifactId>beecp</artifactId>
<version>3.2.9</version>
<version>3.3.0</version>
<exclusions>
<exclusion>
<artifactId>slf4j-api</artifactId>

View File

@ -241,7 +241,7 @@
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-smartcn</artifactId>
<version>8.10.1</version>
<version>8.11.0</version>
<optional>true</optional>
</dependency>
<dependency>
@ -384,7 +384,7 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.6</version>
<version>1.2.7</version>
<scope>test</scope>
<exclusions>
<exclusion>
@ -432,7 +432,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>5.3.12</version>
<version>5.3.13</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>