GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Java:升级 APIJSON 和 apijson-framework 分别至 4.4.7 和 4.4.9 · msgui/APIJSON-Demo@25f0bc2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • APIJSON-Java-Server
    • APIJSONBoot
      • pom.xml
    • APIJSONFinal
      • pom.xml
      • src/main/java/apijson/demo
        • DemoFunctionParser.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎APIJSON-Java-Server/APIJSONBoot/pom.xml‎

Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONBoot/pom.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>apijson.boot</groupId>
77
<artifactId>apijson-boot</artifactId>
8-
<version>4.4.6</version>
8+
<version>4.4.9</version>
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONBoot</name>
@@ -41,12 +41,12 @@
4141
<dependency>
4242
<groupId>com.github.Tencent</groupId>
4343
<artifactId>APIJSON</artifactId>
44-
<version>4.3.1</version>
44+
<version>4.4.7</version>
4545
</dependency>
4646
<dependency>
4747
<groupId>com.github.APIJSON</groupId>
4848
<artifactId>apijson-framework</artifactId>
49-
<version>4.4.6</version>
49+
<version>4.4.9</version>
5050
</dependency>
5151
<!-- 可使用 libs 目录的 apijson-orm.jar 和 apijson-framework.jar 来替代,两种方式二选一 >>>>>>>>>> -->
5252

Collapse file

‎APIJSON-Java-Server/APIJSONFinal/pom.xml‎

Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONFinal/pom.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>apijson.jfinal</groupId>
55
<artifactId>apijson-final</artifactId>
66
<packaging>jar</packaging>
7-
<version>4.4.6</version>
7+
<version>4.4.9</version>
88
<name>Demo project for APIJSON Server based on JFinal</name>
99
<url>http://maven.apache.org</url>
1010
<dependencies>
@@ -24,12 +24,12 @@
2424
<dependency>
2525
<groupId>com.github.Tencent</groupId>
2626
<artifactId>APIJSON</artifactId>
27-
<version>4.3.1</version>
27+
<version>4.4.7</version>
2828
</dependency>
2929
<dependency>
3030
<groupId>com.github.APIJSON</groupId>
3131
<artifactId>apijson-framework</artifactId>
32-
<version>4.4.6</version>
32+
<version>4.4.9</version>
3333
</dependency>
3434
<!-- 可使用 libs 目录的 apijson-orm.jar 和 apijson-framework.jar 来替代,两种方式二选一 >>>>>>>>>> -->
3535

Collapse file

‎APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/DemoFunctionParser.java‎

Copy file name to clipboardExpand all lines: APIJSON-Java-Server/APIJSONFinal/src/main/java/apijson/demo/DemoFunctionParser.java
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public DemoFunctionParser(RequestMethod method, String tag, int version, JSONObj
5252
*/
5353
public Object verifyIdList(@NotNull JSONObject current, @NotNull String idList) throws Exception {
5454
Object obj = current.get(idList);
55+
if (obj == null) {
56+
return null;
57+
}
58+
5559
if (obj instanceof Collection == false) {
5660
throw new IllegalArgumentException(idList + " 不符合 Array 类型! 结构必须是 [] !");
5761
}
@@ -74,6 +78,10 @@ public Object verifyIdList(@NotNull JSONObject current, @NotNull String idList)
7478
*/
7579
public Object verifyURLList(@NotNull JSONObject current, @NotNull String urlList) throws Exception {
7680
Object obj = current.get(urlList);
81+
if (obj == null) {
82+
return null;
83+
}
84+
7785
if (obj instanceof Collection == false) {
7886
throw new IllegalArgumentException(urlList + " 不符合 Array 类型! 结构必须是 [] !");
7987
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.