This is an automated email from the ASF dual-hosted git repository.
chaokunyang 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 ecc33470 fix(java): Modify some mistake (#2086)
ecc33470 is described below
commit ecc3347066c099438d8d5cd5abbe4f3687c3f830
Author: hn <[email protected]>
AuthorDate: Sat Mar 1 15:05:46 2025 +0800
fix(java): Modify some mistake (#2086)
<!--
**Thanks for contributing to Fury.**
**If this is your first time opening a PR on fury, you can refer to
[CONTRIBUTING.md](https://github.com/apache/fury/blob/main/CONTRIBUTING.md).**
Contribution Checklist
- The **Apache Fury (incubating)** community has restrictions on the
naming of pr titles. You can also find instructions in
[CONTRIBUTING.md](https://github.com/apache/fury/blob/main/CONTRIBUTING.md).
- Fury has a strong focus on performance. If the PR you submit will have
an impact on performance, please benchmark it first and provide the
benchmark result here.
-->
## What does this PR do?
<!-- Describe the purpose of this PR. -->
## Related issues
<!--
Is there any related issue? Please attach here.
- #xxxx0
- #xxxx1
- #xxxx2
-->
## 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.
-->
---------
Co-authored-by: hening <[email protected]>
---
.../src/main/java/org/apache/fury/serializer/ImmutableSerializer.java | 2 +-
java/fury-core/src/main/java/org/apache/fury/util/LoaderBinding.java | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git
a/java/fury-core/src/main/java/org/apache/fury/serializer/ImmutableSerializer.java
b/java/fury-core/src/main/java/org/apache/fury/serializer/ImmutableSerializer.java
index c8cec37c..939f4703 100644
---
a/java/fury-core/src/main/java/org/apache/fury/serializer/ImmutableSerializer.java
+++
b/java/fury-core/src/main/java/org/apache/fury/serializer/ImmutableSerializer.java
@@ -37,6 +37,6 @@ public abstract class ImmutableSerializer<T> extends
Serializer<T> {
}
public ImmutableSerializer(Fury fury, Class<T> type, boolean needToWriteRef,
boolean immutable) {
- super(fury, type, needToWriteRef, true);
+ super(fury, type, needToWriteRef, immutable);
}
}
diff --git
a/java/fury-core/src/main/java/org/apache/fury/util/LoaderBinding.java
b/java/fury-core/src/main/java/org/apache/fury/util/LoaderBinding.java
index 3b747d22..883a33c6 100644
--- a/java/fury-core/src/main/java/org/apache/fury/util/LoaderBinding.java
+++ b/java/fury-core/src/main/java/org/apache/fury/util/LoaderBinding.java
@@ -20,7 +20,6 @@
package org.apache.fury.util;
import java.lang.ref.SoftReference;
-import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
@@ -69,7 +68,7 @@ public final class LoaderBinding {
}
} else {
Set<Fury> furySet = new HashSet<>(furyMap.size());
- Collections.addAll(furyMap.values());
+ furySet.addAll(furyMap.values());
for (SoftReference<Fury> ref : furySoftMap.values()) {
Fury f = ref.get();
if (f != null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]