This commit is contained in:
Looly 2022-03-31 15:14:52 +08:00
parent 94100fc7cd
commit 77d3015bc0
2 changed files with 3 additions and 4 deletions

View File

@ -11,7 +11,6 @@ import cn.hutool.core.text.StrJoiner;
import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.ReflectUtil;
import com.sun.xml.internal.ws.util.xml.NodeListIterator;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@ -1035,10 +1034,10 @@ public class IterUtil {
} else if (obj instanceof Map) {
return ((Map<?, ?>) obj).entrySet().iterator();
} else if (obj instanceof NodeList) {
return new NodeListIterator((NodeList) obj);
return new NodeListIter((NodeList) obj);
} else if (obj instanceof Node) {
// 遍历子节点
return new NodeListIterator(((Node) obj).getChildNodes());
return new NodeListIter(((Node) obj).getChildNodes());
} else if (obj instanceof Dictionary) {
return new EnumerationIter<>(((Dictionary<?, ?>) obj).elements());
}

View File

@ -288,7 +288,7 @@ public class MapUtil {
* @param pairs 键值对
* @return Map
* @since 5.4.1
* @deprecated 方法容易歧义请使用 {@link #ofEntries(Entry[])}
* @deprecated 方法容易歧义请使用 {@code #ofEntries(Entry[])}
*/
@SafeVarargs
@Deprecated