Commit 91e42cfa00bae4a6112b359d8cb1b92c15a19e44

Authored by 王彬
1 parent 33a3ecf6
Exists in master

1.update source sn

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