Code style fixes
This commit is contained in:
parent
7f662eae04
commit
54203b58e5
1 changed files with 0 additions and 4 deletions
4
common/src/main/java/org/zhdev/util/StringUtils.java
Executable file → Normal file
4
common/src/main/java/org/zhdev/util/StringUtils.java
Executable file → Normal file
|
|
@ -128,11 +128,9 @@ public class StringUtils {
|
|||
|
||||
public static String escape(String str, String escape, char... chars) {
|
||||
StringBuilder builder = new StringBuilder(str);
|
||||
|
||||
for (char c : chars) {
|
||||
replace(builder, String.valueOf(c), escape + c);
|
||||
}
|
||||
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
|
@ -142,11 +140,9 @@ public class StringUtils {
|
|||
|
||||
public static String unescape(String str, String escape, char... chars) {
|
||||
StringBuilder builder = new StringBuilder(str);
|
||||
|
||||
for (char c : chars) {
|
||||
replace(builder, escape + c, c);
|
||||
}
|
||||
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue