mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Fix obvious mistakes like spelling errors
This commit is contained in:
@@ -51,7 +51,11 @@ public class StringUtils {
|
||||
if (indexFrom < 0 || indexTo < 0 || indexFrom > indexTo) {
|
||||
return null;
|
||||
}
|
||||
indexFrom += start.length();
|
||||
|
||||
if (null != start) {
|
||||
indexFrom += start.length();
|
||||
}
|
||||
|
||||
return src.substring(indexFrom, indexTo);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user