You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by mm...@apache.org on 2006/11/16 03:23:22 UTC
svn commit: r475537 - in /incubator/cxf/trunk:
common/common/src/main/java/org/apache/cxf/common/util/
common/common/src/test/java/org/apache/cxf/common/util/
tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/
Author: mmao
Date: Wed Nov 15 18:23:21 2006
New Revision: 475537
URL: http://svn.apache.org/viewvc?view=rev&rev=475537
Log:
Remove ListUtils since the function we add is available in JDK.
Should not re-invent the wheel ;)
Removed:
incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ListUtils.java
incubator/cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/ListUtilsTest.java
Modified:
incubator/cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSDL11Validator.java
Modified: incubator/cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSDL11Validator.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSDL11Validator.java?view=diff&rev=475537&r1=475536&r2=475537
==============================================================================
--- incubator/cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSDL11Validator.java (original)
+++ incubator/cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSDL11Validator.java Wed Nov 15 18:23:21 2006
@@ -30,7 +30,6 @@
import org.xml.sax.InputSource;
-import org.apache.cxf.common.util.ListUtils;
import org.apache.cxf.common.util.StringUtils;
import org.apache.cxf.resource.URIResolver;
import org.apache.cxf.tools.common.ToolConstants;
@@ -131,11 +130,12 @@
}
}
- return sort(xsdList);
+ sort(xsdList);
+ return xsdList;
}
- private List<InputSource> sort(List<InputSource> list) {
- return ListUtils.sort(list, new Comparator<InputSource>() {
+ private void sort(List<InputSource> list) {
+ Collections.sort(list, new Comparator<InputSource>() {
public int compare(InputSource i1, InputSource i2) {
if (i1 == null && i2 == null) {
return -1;