From 9850312d2a2ab9266eda337c9120481c8aea4219 Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Fri, 5 Jul 2024 11:31:41 +0800 Subject: [PATCH] Remove the default value for ignoreSSL --- .github/workflows/test_java.yml | 2 +- .../src/main/java/com/aliyun/teautil/models/RuntimeOptions.java | 2 +- java/src/test/java/com/aliyun/teautil/CommonTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_java.yml b/.github/workflows/test_java.yml index a57a6d39..0480a004 100644 --- a/.github/workflows/test_java.yml +++ b/.github/workflows/test_java.yml @@ -20,7 +20,7 @@ jobs: matrix: # test against latest update of each major Java version, as well as specific updates of LTS versions: # 20, 21还不支持,报错是Source option 7 is no longer supported. Use 8 or later. - java: [7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19] + java: [7, 8, 11, 17] fail-fast: false steps: diff --git a/java/src/main/java/com/aliyun/teautil/models/RuntimeOptions.java b/java/src/main/java/com/aliyun/teautil/models/RuntimeOptions.java index 5ce04006..700a2895 100644 --- a/java/src/main/java/com/aliyun/teautil/models/RuntimeOptions.java +++ b/java/src/main/java/com/aliyun/teautil/models/RuntimeOptions.java @@ -13,7 +13,7 @@ public class RuntimeOptions extends TeaModel { // ignore SSL validation @NameInMap("ignoreSSL") - public Boolean ignoreSSL = true; + public Boolean ignoreSSL; // privite key for client certificate @NameInMap("key") diff --git a/java/src/test/java/com/aliyun/teautil/CommonTest.java b/java/src/test/java/com/aliyun/teautil/CommonTest.java index fd729bc6..3a9de536 100644 --- a/java/src/test/java/com/aliyun/teautil/CommonTest.java +++ b/java/src/test/java/com/aliyun/teautil/CommonTest.java @@ -274,7 +274,7 @@ public void assertAsArrayTest() { List list4 = new ArrayList<>(); RuntimeOptions option = new RuntimeOptions(); list4.add(option); - Assert.assertEquals(true, ((RuntimeOptions) Common.assertAsArray(list4).get(0)).ignoreSSL); + Assert.assertEquals(null, ((RuntimeOptions) Common.assertAsArray(list4).get(0)).ignoreSSL); } @Test