Commit 91e42cfa00bae4a6112b359d8cb1b92c15a19e44

Authored by 王彬
1 parent 33a3ecf6
Exists in master

1.update source sn

build.gradle
... ... @@ -54,7 +54,7 @@ uploadArchives {
54 54 authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD)
55 55 }
56 56 pom.project {
57   - version '1.1.20'
  57 + version '1.1.21'
58 58 artifactId ARTIFACT_Id
59 59 groupId GROUP_ID
60 60 packaging TYPE
... ...
src/main/java/com/taover/util/UtilString.java
... ... @@ -16,6 +16,9 @@ public class UtilString {
16 16 if(source == null){
17 17 return null;
18 18 }
  19 + if(source.equals("")){
  20 + return "";
  21 + }
19 22  
20 23 Pattern pattern = Pattern.compile("\\S");
21 24 int startIndex = -1;
... ... @@ -37,6 +40,9 @@ public class UtilString {
37 40 if(source == null){
38 41 return null;
39 42 }
  43 + if(source.equals("")){
  44 + return "";
  45 + }
40 46  
41 47 Pattern pattern = Pattern.compile("\\S");
42 48 int endIndex = source.length();
... ...