In-line local variables only used once.

This commit is contained in:
Gary Gregory 2019-11-04 17:59:38 -05:00
parent d0b95be281
commit 49e9754b6c
1 changed files with 2 additions and 4 deletions

View File

@ -211,8 +211,7 @@ public class StringUtils {
* @since 2.0
*/
public static String abbreviate(final String str, final int maxWidth) {
final String defaultAbbrevMarker = "...";
return abbreviate(str, defaultAbbrevMarker, 0, maxWidth);
return abbreviate(str, "...", 0, maxWidth);
}
/**
@ -251,8 +250,7 @@ public class StringUtils {
* @since 2.0
*/
public static String abbreviate(final String str, final int offset, final int maxWidth) {
final String defaultAbbrevMarker = "...";
return abbreviate(str, defaultAbbrevMarker, offset, maxWidth);
return abbreviate(str, "...", offset, maxWidth);
}
/**