From 286f4da24abc7244b8d30489ce765341641838fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E7=8C=AB=E9=A5=BC?= Date: Thu, 26 May 2022 03:39:50 +0000 Subject: [PATCH] :art: code format --- .../core/route/ExecutorRouteStrategyEnum.java | 26 +++++++------------ .../admin/core/trigger/TriggerTypeEnum.java | 9 +++---- 2 files changed, 13 insertions(+), 22 deletions(-) diff --git a/pig-visual/pig-xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/ExecutorRouteStrategyEnum.java b/pig-visual/pig-xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/ExecutorRouteStrategyEnum.java index 90adb757..b747003d 100755 --- a/pig-visual/pig-xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/ExecutorRouteStrategyEnum.java +++ b/pig-visual/pig-xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/ExecutorRouteStrategyEnum.java @@ -8,22 +8,16 @@ import com.xxl.job.admin.core.util.I18nUtil; */ public enum ExecutorRouteStrategyEnum { - FIRST(I18nUtil.getString("jobconf_route_first"), new ExecutorRouteFirst()), LAST( - I18nUtil.getString("jobconf_route_last"), new ExecutorRouteLast()), ROUND( - I18nUtil.getString("jobconf_route_round"), new ExecutorRouteRound()), RANDOM( - I18nUtil.getString("jobconf_route_random"), new ExecutorRouteRandom()), CONSISTENT_HASH( - I18nUtil.getString("jobconf_route_consistenthash"), - new ExecutorRouteConsistentHash()), LEAST_FREQUENTLY_USED( - I18nUtil.getString("jobconf_route_lfu"), - new ExecutorRouteLFU()), LEAST_RECENTLY_USED( - I18nUtil.getString("jobconf_route_lru"), - new ExecutorRouteLRU()), FAILOVER( - I18nUtil.getString("jobconf_route_failover"), - new ExecutorRouteFailover()), BUSYOVER( - I18nUtil.getString("jobconf_route_busyover"), - new ExecutorRouteBusyover()), SHARDING_BROADCAST( - I18nUtil.getString("jobconf_route_shard"), - null); + FIRST(I18nUtil.getString("jobconf_route_first"), new ExecutorRouteFirst()), + LAST(I18nUtil.getString("jobconf_route_last"), new ExecutorRouteLast()), + ROUND(I18nUtil.getString("jobconf_route_round"), new ExecutorRouteRound()), + RANDOM(I18nUtil.getString("jobconf_route_random"), new ExecutorRouteRandom()), + CONSISTENT_HASH(I18nUtil.getString("jobconf_route_consistenthash"), new ExecutorRouteConsistentHash()), + LEAST_FREQUENTLY_USED(I18nUtil.getString("jobconf_route_lfu"), new ExecutorRouteLFU()), + LEAST_RECENTLY_USED(I18nUtil.getString("jobconf_route_lru"), new ExecutorRouteLRU()), + FAILOVER(I18nUtil.getString("jobconf_route_failover"), new ExecutorRouteFailover()), + BUSYOVER(I18nUtil.getString("jobconf_route_busyover"), new ExecutorRouteBusyover()), + SHARDING_BROADCAST(I18nUtil.getString("jobconf_route_shard"), null); ExecutorRouteStrategyEnum(String title, ExecutorRouter router) { this.title = title; diff --git a/pig-visual/pig-xxl-job-admin/src/main/java/com/xxl/job/admin/core/trigger/TriggerTypeEnum.java b/pig-visual/pig-xxl-job-admin/src/main/java/com/xxl/job/admin/core/trigger/TriggerTypeEnum.java index a9f5042a..a0767269 100755 --- a/pig-visual/pig-xxl-job-admin/src/main/java/com/xxl/job/admin/core/trigger/TriggerTypeEnum.java +++ b/pig-visual/pig-xxl-job-admin/src/main/java/com/xxl/job/admin/core/trigger/TriggerTypeEnum.java @@ -9,12 +9,9 @@ import com.xxl.job.admin.core.util.I18nUtil; */ public enum TriggerTypeEnum { - MANUAL(I18nUtil.getString("jobconf_trigger_type_manual")), CRON( - I18nUtil.getString("jobconf_trigger_type_cron")), RETRY( - I18nUtil.getString("jobconf_trigger_type_retry")), PARENT( - I18nUtil.getString("jobconf_trigger_type_parent")), API( - I18nUtil.getString("jobconf_trigger_type_api")), MISFIRE( - I18nUtil.getString("jobconf_trigger_type_misfire")); + MANUAL(I18nUtil.getString("jobconf_trigger_type_manual")), CRON(I18nUtil.getString("jobconf_trigger_type_cron")), + RETRY(I18nUtil.getString("jobconf_trigger_type_retry")), PARENT(I18nUtil.getString("jobconf_trigger_type_parent")), + API(I18nUtil.getString("jobconf_trigger_type_api")), MISFIRE(I18nUtil.getString("jobconf_trigger_type_misfire")); private TriggerTypeEnum(String title) { this.title = title;