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.git
The following commit(s) were added to refs/heads/main by this push:
new 22020323 fix(java): fix not null value flag (#2114)
22020323 is described below
commit 22020323dfa1cff8ae29ca236c90ff7e78b2b667
Author: Shawn Yang <[email protected]>
AuthorDate: Sun Mar 23 13:44:48 2025 +0800
fix(java): fix not null value flag (#2114)
## What does this PR do?
<!-- Describe the purpose of this PR. -->
## Related issues
Closes #2089
## Does this PR introduce any user-facing change?
<!--
If any user-facing interface changes, please [open an
issue](https://github.com/apache/fury/issues/new/choose) describing the
need to do so and update the document if necessary.
-->
- [ ] 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.
-->
---
.../src/main/java/org/apache/fury/builder/BaseObjectCodecBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/java/fury-core/src/main/java/org/apache/fury/builder/BaseObjectCodecBuilder.java
b/java/fury-core/src/main/java/org/apache/fury/builder/BaseObjectCodecBuilder.java
index 7dec0a0a..744ac711 100644
---
a/java/fury-core/src/main/java/org/apache/fury/builder/BaseObjectCodecBuilder.java
+++
b/java/fury-core/src/main/java/org/apache/fury/builder/BaseObjectCodecBuilder.java
@@ -366,7 +366,7 @@ public abstract class BaseObjectCodecBuilder extends
CodecBuilder {
Expression action =
new ListExpression(
new Invoke(
- buffer, "writeByte", new Literal(Fury.REF_VALUE_FLAG,
PRIMITIVE_BYTE_TYPE)),
+ buffer, "writeByte", new Literal(Fury.NOT_NULL_VALUE_FLAG,
PRIMITIVE_BYTE_TYPE)),
serializeForNotNull(inputObject, buffer, typeRef, serializer,
generateNewMethod));
return new If(
eqNull(inputObject),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]