Skip to content

Commit c9a0558

Browse files
committed
升级 APIJSON 及自身 6.1.0,UnitAuto 2.9.0,MySQL JDBC 8.0.33,PostgreSQL JDBC 42.3.8;优化代码
1 parent 91f0c8b commit c9a0558

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

pom.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>apijson.framework</groupId>
77
<artifactId>apijson-framework</artifactId>
8-
<version>6.0.0</version>
8+
<version>6.1.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONFramework</name>
@@ -34,19 +34,19 @@
3434
<dependency>
3535
<groupId>com.github.Tencent</groupId>
3636
<artifactId>APIJSON</artifactId>
37-
<version>6.0.0</version>
37+
<version>6.1.0</version>
3838
</dependency>
3939

4040
<!-- 数据库 JDBC 驱动 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -->
4141
<dependency>
4242
<groupId>mysql</groupId>
4343
<artifactId>mysql-connector-java</artifactId>
44-
<version>8.0.29</version>
44+
<version>8.0.33</version>
4545
</dependency>
4646
<dependency>
4747
<groupId>org.postgresql</groupId>
4848
<artifactId>postgresql</artifactId>
49-
<version>42.3.4</version>
49+
<version>42.3.8</version>
5050
</dependency>
5151
<!-- 数据库 JDBC 驱动 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->
5252

@@ -55,12 +55,12 @@
5555
<dependency>
5656
<groupId>com.github.TommyLemon</groupId>
5757
<artifactId>unitauto-java</artifactId>
58-
<version>2.7.2</version>
58+
<version>2.9.0</version>
5959
</dependency>
6060
<dependency>
6161
<groupId>com.github.TommyLemon</groupId>
6262
<artifactId>unitauto-jar</artifactId>
63-
<version>2.7.2</version>
63+
<version>2.9.0</version>
6464
</dependency>
6565
<!-- 单元测试:可使用 libs 目录的 unitauto-java.jar 和 unitauto-jar.jar 来替代,两种方式二选一 >>>>>>>>> -->
6666

@@ -71,6 +71,7 @@
7171
<plugin>
7272
<groupId>org.apache.maven.plugins</groupId>
7373
<artifactId>maven-compiler-plugin</artifactId>
74+
<version>3.8.1</version>
7475
<configuration>
7576
<source>1.8</source>
7677
<target>1.8</target>

src/main/java/apijson/framework/APIJSONFunctionParser.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,7 @@ public String getMethodArguments(@NotNull JSONObject curObj, String methodArgsKe
712712
/**改用 getMethodDefinition
713713
*/
714714
@Deprecated
715-
public String getMethodDefination(@NotNull JSONObject curObj)
716-
throws IllegalArgumentException, ClassNotFoundException, IOException {
715+
public String getMethodDefination(@NotNull JSONObject curObj) throws IllegalArgumentException {
717716
// curObj.put("arguments", removeComment(curObj.getString("methodArgs")));
718717
return getMethodDefination(curObj, "method", "arguments", "genericType", "genericExceptions", "Java");
719718
}
@@ -725,8 +724,7 @@ public String getMethodDefination(@NotNull JSONObject curObj)
725724
* @throws ClassNotFoundException
726725
* @throws IllegalArgumentException
727726
*/
728-
public String getMethodDefinition(@NotNull JSONObject curObj)
729-
throws IllegalArgumentException, ClassNotFoundException, IOException {
727+
public String getMethodDefinition(@NotNull JSONObject curObj) throws IllegalArgumentException {
730728
// curObj.put("arguments", removeComment(curObj.getString("methodArgs")));
731729
return getMethodDefinition(curObj, "method", "arguments", "genericType", "genericExceptions", "Java");
732730
}

0 commit comments

Comments
 (0)