HashSet<String> deDupe = new LinkedHashSet<>(Arrays.asList(origParams.getParams(paramName))); params.add(paramName, deDupe.toArray(new String[deDupe.size()]));
通常用 带泛型的 toArray(T[])
http://rogerfederer.iteye.com/blog/788795
Powered by: 博客园 Copyright © 2024 mdong Powered by .NET 9.0 on Kubernetes