Browse Source

CollUtil.subtractToList bug fix

hitfire 5 years ago
parent
commit
d03e3b5b94
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hutool-core/src/main/java/cn/hutool/core/collection/CollUtil.java

+ 1 - 1
hutool-core/src/main/java/cn/hutool/core/collection/CollUtil.java

@@ -345,7 +345,7 @@ public class CollUtil {
 			return ListUtil.empty();
 		}
 		if (isEmpty(coll2)) {
-			return ListUtil.list(true, coll2);
+			return ListUtil.list(true, coll1);
 		}
 
 		//将被交数用链表储存,防止因为频繁扩容影响性能