This is an automated email from the ASF dual-hosted git repository.

pandalee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fury-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 24a70768 fix: replace the removed withSecureMode API by 
requireClassRegistration (#209)
24a70768 is described below

commit 24a7076810b4ab7460901b5f4257ac9c943ec77b
Author: Zhanghao Chen <[email protected]>
AuthorDate: Mon Feb 17 22:49:12 2025 +0800

    fix: replace the removed withSecureMode API by requireClassRegistration 
(#209)
    
    The `withSecureMode` API has already been replaced by
    `requireClassRegistration`. We should update it accordingly.
---
 docs/start/usage.md                                              | 2 +-
 i18n/zh-CN/docusaurus-plugin-content-docs/current/start/usage.md | 2 +-
 src/pages/home/components/HomepageCodeDisplay.tsx                | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/start/usage.md b/docs/start/usage.md
index 2a5a83b6..ebbd4b20 100644
--- a/docs/start/usage.md
+++ b/docs/start/usage.md
@@ -19,7 +19,7 @@ public class Example {
     Fury fury = Fury.builder().withLanguage(Language.JAVA)
       // Allow to deserialize objects unknown types,
       // more flexible but less secure.
-      // .withSecureMode(false)
+      // .requireClassRegistration(false)
       .build();
     // Registering types can reduce class name serialization overhead, but not 
mandatory.
     // If secure mode enabled, all custom types must be registered.
diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/start/usage.md 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/start/usage.md
index ff6653fc..134acb2c 100644
--- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/start/usage.md
+++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/start/usage.md
@@ -21,7 +21,7 @@ public class Example {
     Fury fury = Fury.builder().withLanguage(Language.JAVA)
       // Allow to deserialize objects unknown types,
       // more flexible but less secure.
-      // .withSecureMode(false)
+      // .requireClassRegistration(false)
       .build();
     // Registering types can reduce class name serialization overhead, but not 
mandatory.
     // If secure mode enabled, all custom types must be registered.
diff --git a/src/pages/home/components/HomepageCodeDisplay.tsx 
b/src/pages/home/components/HomepageCodeDisplay.tsx
index 85f2c9ee..a8cbcba4 100644
--- a/src/pages/home/components/HomepageCodeDisplay.tsx
+++ b/src/pages/home/components/HomepageCodeDisplay.tsx
@@ -15,7 +15,7 @@ public class Example {
   static ThreadSafeFury fury = Fury.builder().withLanguage(Language.JAVA)
     // Allow to deserialize objects unknown types,
     // more flexible but less secure.
-    // .withSecureMode(false)
+    // .requireClassRegistration(false)
     .buildThreadSafeFury();
 
   static {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to