Removing the unnecessary sequenceToString method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1082817 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
adea6bf13a
commit
e11cafae80
|
@ -2002,7 +2002,7 @@ public class StringUtils {
|
|||
return EMPTY;
|
||||
}
|
||||
|
||||
return sequenceToString(str.subSequence(start, str.length()));
|
||||
return str.subSequence(start, str.length()).toString();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2070,7 +2070,7 @@ public class StringUtils {
|
|||
end = 0;
|
||||
}
|
||||
|
||||
return sequenceToString(str.subSequence(start, end));
|
||||
return str.subSequence(start, end).toString();
|
||||
}
|
||||
|
||||
// Left/Right/Mid
|
||||
|
@ -6495,13 +6495,4 @@ public class StringUtils {
|
|||
}
|
||||
}
|
||||
|
||||
// Convert a CharSequence to a String
|
||||
static String sequenceToString(CharSequence cs) {
|
||||
if (cs instanceof String) {
|
||||
return ((String) cs);
|
||||
} else {
|
||||
return cs.toString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue