cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1423980 - /cxf/trunk/api/src/main/java/org/apache/cxf/common/util/StringUtils.java
Date Wed, 19 Dec 2012 17:43:41 GMT
Author: dkulp
Date: Wed Dec 19 17:43:40 2012
New Revision: 1423980

URL: http://svn.apache.org/viewvc?rev=1423980&view=rev
Log:
Actually use the parameter that is passed in

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/common/util/StringUtils.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/common/util/StringUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/common/util/StringUtils.java?rev=1423980&r1=1423979&r2=1423980&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/common/util/StringUtils.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/common/util/StringUtils.java Wed Dec 19 17:43:40
2012
@@ -110,9 +110,9 @@ public final class StringUtils {
         return str1;
     }
     
-    public static List<String> getParts(String str, String sperator) {
+    public static List<String> getParts(String str, String seperator) {
         List<String> ret = new ArrayList<String>();
-        List<String> parts = Arrays.asList(str.split("/"));
+        List<String> parts = Arrays.asList(str.split(seperator));
         for (String part : parts) {
             if (!isEmpty(part)) {
                 ret.add(part);
@@ -121,8 +121,8 @@ public final class StringUtils {
         return ret;
     }
     
-    public static String getFirstNotEmpty(String str, String sperator) {
-        List<String> parts = Arrays.asList(str.split("/"));
+    public static String getFirstNotEmpty(String str, String seperator) {
+        List<String> parts = Arrays.asList(str.split(seperator));
         for (String part : parts) {
             if (!isEmpty(part)) {
                 return part;



Mime
View raw message