From 480dd64e633c2ec3a7366a1ea63df7bdc9223378 Mon Sep 17 00:00:00 2001 From: fanqq Date: Mon, 11 Jul 2016 11:39:44 +0800 Subject: [PATCH] fix group priority bug --- .../java/com/ctrip/zeus/executor/impl/TaskExecutorImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ctrip/zeus/executor/impl/TaskExecutorImpl.java b/src/main/java/com/ctrip/zeus/executor/impl/TaskExecutorImpl.java index 2af70545..29dfc263 100644 --- a/src/main/java/com/ctrip/zeus/executor/impl/TaskExecutorImpl.java +++ b/src/main/java/com/ctrip/zeus/executor/impl/TaskExecutorImpl.java @@ -331,7 +331,7 @@ public class TaskExecutorImpl implements TaskExecutor { List list = vsGroups.get(vsId); Collections.sort(list, new Comparator() { public int compare(Group group0, Group group1) { - if (vsGroupPriority.get("VS" + vs + "_" + group1.getId()) == vsGroupPriority.get("VS" + vs + "_" + group0.getId())) { + if (vsGroupPriority.get("VS" + vs + "_" + group1.getId()).equals(vsGroupPriority.get("VS" + vs + "_" + group0.getId()))) { return (int) (group1.getId() - group0.getId()); } return vsGroupPriority.get("VS" + vs + "_" + group1.getId()) - vsGroupPriority.get("VS" + vs + "_" + group0.getId());