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 <[email protected]>
AuthorDate: Tue Jul 1 07:30:15 2025 +0100

    [Improvement-17302][Alert] simplify double handling in ExcelUtils (#17303)
    
    Co-authored-by: xiangzihao <[email protected]>
---
 .../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]));
                     }

Reply via email to