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:
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user