You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zi...@apache.org on 2025/07/01 06:30:22 UTC
(dolphinscheduler) branch dev updated: [Improvement-17302][Alert] simplify double handling in ExcelUtils (#17303)
This is an automated email from the ASF dual-hosted git repository.
zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 2ed38213bc [Improvement-17302][Alert] simplify double handling in ExcelUtils (#17303)
2ed38213bc is described below
commit 2ed38213bc62c34fec6c0859f5ef104b1dd50a91
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Tue Jul 1 07:30:15 2025 +0100
[Improvement-17302][Alert] simplify double handling in ExcelUtils (#17303)
Co-authored-by: xiangzihao <46...@qq.com>
---
.../java/org/apache/dolphinscheduler/plugin/alert/email/ExcelUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/ExcelUtils.java b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/ExcelUtils.java
index 83784b1b95..a4df8163d2 100644
--- a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/ExcelUtils.java
+++ b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/ExcelUtils.java
@@ -106,7 +106,7 @@ public final class ExcelUtils {
Cell cell1 = row.createCell(j);
cell1.setCellStyle(cellStyle);
if (values[j] instanceof Number) {
- cell1.setCellValue(Double.parseDouble(String.valueOf(values[j])));
+ cell1.setCellValue(((Number) values[j]).doubleValue());
} else {
cell1.setCellValue(String.valueOf(values[j]));
}