This is an automated email from the ASF dual-hosted git repository.
suiliangliang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury.git
The following commit(s) were added to refs/heads/main by this push:
new 3e996ffd chore(doc): fix example (#1657)
3e996ffd is described below
commit 3e996ffd15f1fb2cd2cbc190404e590b96becceb
Author: wangjie <[email protected]>
AuthorDate: Wed May 29 17:36:37 2024 +0800
chore(doc): fix example (#1657)
## What does this PR do?
fix example code error.

## Related issues
## Does this PR introduce any user-facing change?
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
## Benchmark
<!--
When the PR has an impact on performance (if you don't know whether the
PR will have an impact on performance, you can submit the PR first, and
if it will have impact on performance, the code reviewer will explain
it), be sure to attach a benchmark data here.
-->
---
README.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/README.md b/README.md
index 11ec450f..b619eeb4 100644
--- a/README.md
+++ b/README.md
@@ -175,6 +175,9 @@ public class Example {
// but may be insecure if the classes contains malicious code.
.requireClassRegistration(true)
.buildThreadSafeFury();
+ // Registering types can reduce class name serialization overhead, but
not mandatory.
+ // If class registration enabled, all custom types must be registered.
+ fury.register(SomeClass.class);
byte[] bytes = fury.serialize(object);
System.out.println(fury.deserialize(bytes));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]