Skip to content

Commit 59c6aaa

Browse files
committed
[waterflow] clean code
1 parent cbbdbaa commit 59c6aaa

File tree

1 file changed

+9
-5
lines changed
  • framework/waterflow/java/waterflow-common/src/main/java/modelengine/fit/waterflow/utils

1 file changed

+9
-5
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,11 @@ public static boolean match(String expectedId, String actualId) {
182182
/**
183183
* Compares two maps for equality, handling null cases and checking both keys and values.
184184
* <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>
185+
* <ol>
186+
* <li>Have the same size.</li>
187+
* <li>Contain the same keys.</li>
188+
* <li>Have equal values for each key (using {@link Objects#equals}).</li>
189+
* </ol>
188190
*
189191
* @param <K> The type of keys maintained by the maps.
190192
* @param <V> The type of mapped values。
@@ -213,8 +215,10 @@ public static <K, V> boolean equals(Map<K, V> map1, Map<K, V> map2) {
213215
/**
214216
* Compares two lists for equality, handling null cases and checking elements regardless of order.
215217
* <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+
* <ol>
219+
* <li>Have the same size.</li>
220+
* <li>Contain the same elements (using set comparison).</li>
221+
* </ol>
218222
* <p>Note: This implementation considers [1,2,2] and [1,1,2] as equal due to set conversion.</p>
219223
*
220224
* @param <T> The type of elements in the lists.

0 commit comments

Comments
 (0)