Make checkstyle happy

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1593114 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2014-05-07 18:44:01 +00:00
parent b78295b4fa
commit a2f44d03fe
1 changed files with 4 additions and 2 deletions

View File

@ -7738,8 +7738,9 @@ public static String toEncodedString(byte[] bytes, Charset charset) {
*/
public static String wrap(String str, char wrapWith) {
if (isEmpty(str) || wrapWith == '\0')
if (isEmpty(str) || wrapWith == '\0') {
return str;
}
return wrapWith + str + wrapWith;
}
@ -7775,8 +7776,9 @@ public static String wrap(String str, char wrapWith) {
*/
public static String wrap(String str, String wrapWith) {
if (isEmpty(str) || isEmpty(wrapWith))
if (isEmpty(str) || isEmpty(wrapWith)) {
return str;
}
return wrapWith.concat(str).concat(wrapWith);
}