From 5b7c787b31e7119d09266819e12c7ad6a1eb7cf7 Mon Sep 17 00:00:00 2001 From: JackyTang <jackytang01@gmail.com> Date: 星期四, 20 四月 2023 10:49:29 +0800 Subject: [PATCH] update 使用instanceof模式匹配, 减少二次转换 --- ruoyi-extend/ruoyi-xxl-job-admin/src/main/java/com/xxl/job/admin/core/cron/CronExpression.java | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ruoyi-extend/ruoyi-xxl-job-admin/src/main/java/com/xxl/job/admin/core/cron/CronExpression.java b/ruoyi-extend/ruoyi-xxl-job-admin/src/main/java/com/xxl/job/admin/core/cron/CronExpression.java index 2ce373e..1530119 100644 --- a/ruoyi-extend/ruoyi-xxl-job-admin/src/main/java/com/xxl/job/admin/core/cron/CronExpression.java +++ b/ruoyi-extend/ruoyi-xxl-job-admin/src/main/java/com/xxl/job/admin/core/cron/CronExpression.java @@ -17,6 +17,7 @@ package com.xxl.job.admin.core.cron; +import java.io.Serial; import java.io.Serializable; import java.text.ParseException; import java.util.Calendar; @@ -199,6 +200,7 @@ */ public final class CronExpression implements Serializable, Cloneable { + @Serial private static final long serialVersionUID = 12423409423L; protected static final int SECOND = 0; -- Gitblit v1.9.3