Skip to content

Commit

Permalink
Actually use the parameter that is passed in
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1423980 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dkulp committed Dec 19, 2012
1 parent 096cce8 commit fc8177c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/src/main/java/org/apache/cxf/common/util/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ public static String diff(String str1, String str2) {
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);
Expand All @@ -121,8 +121,8 @@ public static List<String> getParts(String str, String sperator) {
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;
Expand Down

0 comments on commit fc8177c

Please sign in to comment.