Skip to content

Commit 8c208b3

Browse files
committed
[waterflow] clean code
1 parent cbbdbaa commit 8c208b3

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ 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><li>Have the same size.</ol></li>
186+
* <ol><li>Contain the same keys.</ol></li>
187+
* <ol><li>Have equal values for each key (using {@link Objects#equals}).</ol></li>
188188
*
189189
* @param <K> The type of keys maintained by the maps.
190190
* @param <V> The type of mapped values。
@@ -213,8 +213,8 @@ public static <K, V> boolean equals(Map<K, V> map1, Map<K, V> map2) {
213213
/**
214214
* Compares two lists for equality, handling null cases and checking elements regardless of order.
215215
* <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>
216+
* <ol><li>Have the same size.</ol></li>
217+
* <ol><li>Contain the same elements (using set comparison).</ol></li>
218218
* <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.

0 commit comments

Comments
 (0)