Fixing checkstyle issue - lack of braces after an if

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@597282 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2007-11-22 01:31:31 +00:00
parent d2075adb52
commit 11575edd7e
1 changed files with 3 additions and 1 deletions

View File

@ -625,7 +625,9 @@ public class WordUtils {
if (index == -1) {
result.append(str.substring(0, upper));
// only if abbreviation has occured do we append the appendToEnd value
if (upper != str.length()) result.append(StringUtils.defaultString(appendToEnd));
if (upper != str.length()) {
result.append(StringUtils.defaultString(appendToEnd));
}
} else if (index > upper) {
result.append(str.substring(0, upper));
result.append(StringUtils.defaultString(appendToEnd));