You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by xt...@apache.org on 2025/03/25 00:55:10 UTC
(flink) branch master updated: [hotfix] The checkState should follows the Flink code style
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 34edc0322d4 [hotfix] The checkState should follows the Flink code style
34edc0322d4 is described below
commit 34edc0322d463b9b277877f0b8ced40284ce53ee
Author: beliefer <be...@163.com>
AuthorDate: Mon Mar 24 17:20:26 2025 +0800
[hotfix] The checkState should follows the Flink code style
---
.../src/main/java/org/apache/flink/core/memory/MemoryUtils.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/flink-core/src/main/java/org/apache/flink/core/memory/MemoryUtils.java b/flink-core/src/main/java/org/apache/flink/core/memory/MemoryUtils.java
index 2155dc12159..f4cf3e8dbe7 100644
--- a/flink-core/src/main/java/org/apache/flink/core/memory/MemoryUtils.java
+++ b/flink-core/src/main/java/org/apache/flink/core/memory/MemoryUtils.java
@@ -169,10 +169,9 @@ public class MemoryUtils {
Preconditions.checkState(offHeapAddress > 0, "negative pointer or size");
Preconditions.checkState(
offHeapAddress < Long.MAX_VALUE - Integer.MAX_VALUE,
- "Segment initialized with too large address: "
- + offHeapAddress
- + " ; Max allowed address is "
- + (Long.MAX_VALUE - Integer.MAX_VALUE - 1));
+ "Segment initialized with too large address: %s ; Max allowed address is %d",
+ offHeapAddress,
+ (Long.MAX_VALUE - Integer.MAX_VALUE - 1));
return offHeapAddress;
}