Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
📝 update javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
venusdrogon committed Apr 11, 2018
1 parent 964075f commit d1238b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/feilong/core/util/CollectionsUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ public static <O> List<O> removeAll(Collection<O> objectCollection,Collection<O>
* </p>
*
* <pre class="code">
* List{@code <String>} list = toList("xinge", null, "feilong2", "feilong2");
* List{@code <String>} list = toList("xinge", <span style="color:red">null</span>, "feilong2", <span style=
"color:red">null</span>, "feilong2");
* List{@code <String>} removeList = CollectionsUtil.removeAllNull(list);
* </pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public class RemoveAllNullTest{

@Test
public void testRemoveAllCollection(){
List<String> list = toList("xinge", null, "feilong2", "feilong2");
List<String> list = toList("xinge", null, "feilong2", null, "feilong2");
List<String> removeList = CollectionsUtil.removeAllNull(list);

assertThat(removeList, contains("xinge", "feilong2", "feilong2"));
assertThat(list, contains("xinge", null, "feilong2", "feilong2"));
assertThat(list, contains("xinge", null, "feilong2", null, "feilong2"));
}

//---------------------------------------------------------------
Expand Down

0 comments on commit d1238b0

Please sign in to comment.