1
0
mirror of https://github.com/apache/commons-lang.git synced 2025-02-16 15:05:46 +00:00

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

@ -625,7 +625,9 @@ public static String abbreviate(String str, int lower, int upper, String appendT
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));