Skip to content

Commit 788fbe2

Browse files
committed
[waterflow] clean code
1 parent 2e5ebc5 commit 788fbe2

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

framework/waterflow/java/waterflow-common/src/main/java/modelengine/fit/waterflow/ErrorCodes.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public enum ErrorCodes {
4343
/**
4444
* 分页查询时Offset范围不正确。
4545
*/
46+
4647
PAGINATION_OFFSET_INVALID(10000008, "The range of offset is incorrect."),
4748
/**
4849
* 分页查询时Limit范围不正确。
@@ -93,6 +94,10 @@ public enum ErrorCodes {
9394
* 流程启动失败。
9495
*/
9596
FLOW_START_ERROR(10007011, "Flow status is invalid"),
97+
98+
/**
99+
* 执行任务失败。
100+
*/
96101
FLOW_EXECUTE_FITABLE_TASK_FAILED(10007012,
97102
"execute jober failed, jober name: {0}, jober type: {1}, fitables: {2}, errors: {3}"),
98103

framework/waterflow/java/waterflow-common/src/main/java/modelengine/fit/waterflow/utils/Entities.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ public static boolean match(String expectedId, String actualId) {
181181

182182
/**
183183
* Compares two maps for equality, handling null cases and checking both keys and values.
184-
* Two maps are considered equal if they are both null, or if they:
185-
* 1. Have the same size.
186-
* 2. Contain the same keys.
187-
* 3. Have equal values for each key (using {@link Objects#equals}).
184+
* <p>Two maps are considered equal if they are both null, or if they:</p>
185+
* <p>1. Have the same size.</p>
186+
* <p>2. Contain the same keys.</p>
187+
* <p>3. Have equal values for each key (using {@link Objects#equals}).</p>
188188
*
189189
* @param <K> The type of keys maintained by the maps.
190190
* @param <V> The type of mapped values。
@@ -212,10 +212,10 @@ public static <K, V> boolean equals(Map<K, V> map1, Map<K, V> map2) {
212212

213213
/**
214214
* Compares two lists for equality, handling null cases and checking elements regardless of order.
215-
* Two lists are considered equal if they are both null, or if they:
216-
* 1. Have the same size.
217-
* 2. Contain the same elements (using set comparison).
218-
* Note: This implementation considers [1,2,2] and [1,1,2] as equal due to set conversion.
215+
* <p>Two lists are considered equal if they are both null, or if they:</p>
216+
* <p>1. Have the same size.</p>
217+
* <p>2. Contain the same elements (using set comparison).</p>
218+
* <p>Note: This implementation considers [1,2,2] and [1,1,2] as equal due to set conversion.</p>
219219
*
220220
* @param <T> The type of elements in the lists.
221221
* @param list1 The first list to compare (may be null).

0 commit comments

Comments
 (0)