Skip to content

Commit

Permalink
chore(doc): fix example (#1657)
Browse files Browse the repository at this point in the history
## What does this PR do?
fix example code error.

![image](https://github.com/apache/incubator-fury/assets/46479343/eafd5068-7aa0-4cde-af31-ef23b4fc9f55)



## 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.
-->
  • Loading branch information
wangjie-fourth committed May 29, 2024
1 parent 489439d commit 3e996ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 3e996ff

Please sign in to comment.