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:
parent
d2075adb52
commit
11575edd7e
|
@ -625,7 +625,9 @@ public class WordUtils {
|
||||||
if (index == -1) {
|
if (index == -1) {
|
||||||
result.append(str.substring(0, upper));
|
result.append(str.substring(0, upper));
|
||||||
// only if abbreviation has occured do we append the appendToEnd value
|
// 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) {
|
} else if (index > upper) {
|
||||||
result.append(str.substring(0, upper));
|
result.append(str.substring(0, upper));
|
||||||
result.append(StringUtils.defaultString(appendToEnd));
|
result.append(StringUtils.defaultString(appendToEnd));
|
||||||
|
|
Loading…
Reference in New Issue