You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fury.apache.org by ch...@apache.org on 2024/01/21 06:57:36 UTC
(incubator-fury) branch main updated: chore(java): Remove redundant code (#1349)
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/incubator-fury.git
The following commit(s) were added to refs/heads/main by this push:
new 983bc95d chore(java): Remove redundant code (#1349)
983bc95d is described below
commit 983bc95deca6f6f93a8a2e5885f8f5838657f9d6
Author: LiangliangSui <11...@users.noreply.github.com>
AuthorDate: Sun Jan 21 14:57:32 2024 +0800
chore(java): Remove redundant code (#1349)
Both `false` and `null` will determine
`ENABLE_CLASS_REGISTRATION_FORCIBLY` as `false`, so there is no need to
take this extra step.
Signed-off-by: LiangliangSui <co...@gmail.com>
---
java/fury-core/src/main/java/org/apache/fury/config/FuryBuilder.java | 3 ---
1 file changed, 3 deletions(-)
diff --git a/java/fury-core/src/main/java/org/apache/fury/config/FuryBuilder.java b/java/fury-core/src/main/java/org/apache/fury/config/FuryBuilder.java
index b91bd7d6..64da5012 100644
--- a/java/fury-core/src/main/java/org/apache/fury/config/FuryBuilder.java
+++ b/java/fury-core/src/main/java/org/apache/fury/config/FuryBuilder.java
@@ -51,9 +51,6 @@ public final class FuryBuilder {
System.getProperty(
"fury.enable_fury_security_mode_forcibly",
System.getenv("ENABLE_CLASS_REGISTRATION_FORCIBLY"));
- if (flagValue == null) {
- flagValue = "false";
- }
ENABLE_CLASS_REGISTRATION_FORCIBLY = "true".equals(flagValue) || "1".equals(flagValue);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org